{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "day-totals-demo",
  "type": "registry:block",
  "description": "Daily totals with tappable days",
  "files": [
    {
      "path": "registry/predict/health/day-totals/day-totals-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { RangeControl } from \"@workspace/ui/predict/health/range-control\"\nimport { DayTotals } from \"@workspace/ui/predict/health/day-totals\"\n\nexport function DayTotalsDemo() {\n  const [range, setRange] = React.useState<7 | 30 | 90>(7)\n  const [picked, setPicked] = React.useState<number | null>(null)\n  return (\n    <div className=\"flex w-full max-w-[342px] flex-col gap-6\">\n      <RangeControl\n        selected={range}\n        onSelectedChange={(value) => {\n          if (value !== \"day\") setRange(value)\n          setPicked(null)\n        }}\n        aria-label=\"Chart range\"\n      />\n      <DayTotals range={range} onDaySelect={setPicked} />\n      <p className=\"text-[13px] text-subtle\" aria-live=\"polite\">\n        {picked === null\n          ? \"Tap a day to open its hours.\"\n          : `Opened slot ${picked + 1} of ${range === 90 ? 13 : range}.`}\n      </p>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}