import "./components/ui/tidal.css"; import { useState } from "react"; import { TidalHeatmap, type TidalHeatmapCoordinate } from "./components/ui/heatmap"; import "./components/ui/heatmap.css"; const rows = [ { id: "mon", label: "Monday" }, { id: "tue", label: "Tuesday" }, { id: "wed", label: "Wednesday" }, { id: "thu", label: "Thursday" }, { id: "fri", label: "Friday" }, ]; const columns = [ { id: "9", label: "9 AM" }, { id: "11", label: "11 AM" }, { id: "13", label: "1 PM" }, { id: "15", label: "3 PM" }, { id: "17", label: "5 PM" }, ]; const counts = [ [42, 81, 123, 96, 35], [58, 102, 184, 128, 54], [74, 125, 246, 192, 79], [61, 118, 205, 151, 62], [36, 69, 97, 82, null], ]; const cells = rows.flatMap((row, r) => columns.map((column, c) => ({ rowId: row.id, columnId: column.id, value: counts[r]![c]!, })), ); export function HeatmapDemo() { const [selected, setSelected] = useState({ rowId: "wed", columnId: "13", }); return (

Fictional counts. Arrow keys move through cells; Enter selects. Missing data stays distinct from zero.

); } export default function AgentExample() { return (
); }