Vercel/src/components/DivDebugBaselineGrid.tsx
Sam Becker b7cb6715b7
Speed up category hovers (#279)
* Extract out ShareHover components
* Refactor hover/category state
* Rename photo query options types
* Restore category count slice of app state
* Streamline entity hover headers
* Standardize swr keys
* Suppress hover counts to years
* Refine entity hover design
* Make image hovers opt out
2025-07-04 12:19:45 -05:00

26 lines
492 B
TypeScript

'use client';
import { useAppState } from '@/app/AppState';
import { clsx } from 'clsx/lite';
import { HTMLAttributes } from 'react';
export default function DivDebugBaselineGrid({
children,
className,
...props
}: HTMLAttributes<HTMLDivElement>) {
const { shouldShowBaselineGrid } = useAppState();
return (
<div
{...props}
className={clsx(
shouldShowBaselineGrid && 'bg-baseline-grid',
className,
)}
>
{children}
</div>
);
}