{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "metric-charts-demo",
  "type": "registry:block",
  "description": "Metric card with week chart",
  "files": [
    {
      "path": "registry/predict/app/metric-charts/metric-charts-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n  MetricExplain,\n  MetricHeadline,\n  MetricRangeTabs,\n  MetricStoryRow,\n  UsualRangeChart,\n} from \"@workspace/ui/predict/app/metric-charts\"\n\nconst ranges = [\n  { value: \"day\", label: \"Day\" },\n  { value: \"week\", label: \"Week\" },\n  { value: \"month\", label: \"Month\" },\n] as const\n\nconst week = [\n  { label: \"Wed\", value: 60 },\n  { label: \"Thu\", value: 57 },\n  { label: \"Fri\", value: 59 },\n  { label: \"Sat\", value: 62 },\n  { label: \"Sun\", value: 56 },\n  { label: \"Mon\", value: 58 },\n  { label: \"Last night\", value: 58 },\n]\n\nexport function MetricChartsDemo() {\n  const [range, setRange] = React.useState<(typeof ranges)[number][\"value\"]>(\"week\")\n  return (\n    <div className=\"flex w-[372px] max-w-full flex-col gap-4 rounded-[32px] bg-background p-4 text-foreground ring-1 ring-foreground/10\">\n      <p className=\"text-[17px] font-medium\">Resting heart rate</p>\n      <MetricRangeTabs options={ranges} value={range} onValueChange={setRange} />\n      <MetricHeadline value={58} unit=\"bpm\" when=\"Last night\" />\n      <UsualRangeChart low={55} high={62} days={week} />\n      <MetricStoryRow title=\"One of the five in your Daily score\" description=\"It is in your usual range\" />\n      <MetricExplain>\n        Your heart rate when you are still, measured while you sleep. A lower number often means better fitness.\n      </MetricExplain>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}