'use client'; import { useMemo, type CSSProperties } from 'react'; import { packDashboardCells, packedCellClassName, TODAY_DASHBOARD_GRID_CLASS, type TodayDashboardCell, } from '@/components/today/today-dashboard-layout'; interface TodayDashboardGridProps { cells: TodayDashboardCell[]; loading?: boolean; } export function TodayDashboardGrid({ cells, loading = false }: TodayDashboardGridProps) { const packed = useMemo(() => packDashboardCells(cells), [cells]); if (packed.length === 0) { return null; } return (