{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dashboard-01",
  "type": "registry:block",
  "description": "A health dashboard with a sidebar, bio clock, pace of ageing, and flagged biomarkers.",
  "files": [
    {
      "path": "registry/predict/blocks/dashboard-01/page.tsx",
      "content": "\"use client\"\n\nimport { CalendarIcon, DownloadIcon } from \"lucide-react\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@workspace/ui/components/card\"\nimport { Separator } from \"@workspace/ui/components/separator\"\nimport {\n  SidebarInset,\n  SidebarProvider,\n  SidebarTrigger,\n} from \"@workspace/ui/components/sidebar\"\nimport { AgeBar } from \"@workspace/ui/predict/age-bar\"\nimport { BioClock } from \"@workspace/ui/predict/bio-clock\"\n\nimport { AppSidebar } from \"./components/app-sidebar\"\nimport { BiomarkerGrid } from \"./components/biomarker-grid\"\n\nexport default function Page() {\n  return (\n    <SidebarProvider>\n      <AppSidebar />\n      <SidebarInset>\n        <header className=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n          <SidebarTrigger />\n          <h1 className=\"text-sm font-medium\">Overview</h1>\n          <div className=\"ml-auto flex items-center gap-2\">\n            <Button variant=\"outline\" size=\"sm\" className=\"hidden sm:inline-flex\">\n              <CalendarIcon data-icon=\"inline-start\" />\n              12 Oct 2026\n            </Button>\n            <Button size=\"sm\">\n              <DownloadIcon data-icon=\"inline-start\" />\n              Report\n            </Button>\n          </div>\n        </header>\n\n        <div className=\"flex flex-1 flex-col gap-4 p-4 md:pt-0 md:p-6\">\n          <div className=\"flex flex-col gap-4\">\n            <AgeBar biologicalAge={45} chronologicalAge={38} className=\"pb-4\" />\n\n            <div className=\"grid grid-cols-3 gap-4\">\n              {[\n                { label: \"Tested\", value: \"40\" },\n                { label: \"Out of range\", value: \"9\" },\n                { label: \"Critical\", value: \"1\" },\n              ].map((stat) => (\n                <Card key={stat.label} size=\"sm\">\n                  <CardContent className=\"flex flex-col gap-1\">\n                    <span className=\"text-muted-foreground\">{stat.label}</span>\n                    <span className=\"text-2xl font-medium tabular-nums\">{stat.value}</span>\n                  </CardContent>\n                </Card>\n              ))}\n            </div>\n          </div>\n          <div className=\"grid grid-cols-1 gap-4 lg:grid-cols-5\">\n            <Card className=\"min-w-0 lg:col-span-3\">\n              <CardHeader>\n                <CardTitle className=\"text-sm\">Bio clock</CardTitle>\n                <CardDescription>\n                  Biological age, severity, and the domain that stands out.\n                </CardDescription>\n              </CardHeader>\n\n              <CardContent>\n                <BioClock\n                  bioAge={45}\n                  yearsValue=\"+7 Years\"\n                  currentValue={2.6}\n                  className=\"mx-auto w-full\"\n                  size={\"default\"}\n                />\n                <div className=\"grid grid-cols-1 gap-4 border-t p-4 sm:grid-cols-3\">\n                  <div className=\"flex gap-2\">\n                    <div className=\"w-2 shrink-0 self-stretch rounded-full bg-foreground\" />\n                    <div className=\"space-y-1\">\n                      <p className=\"text-sm font-semibold\">Hour Hand</p>\n                      <p className=\"text-muted-foreground text-xs\">\n                        How sick or unwell you are\n                      </p>\n                    </div>\n                  </div>\n\n                  <div className=\"flex gap-2\">\n                    <div className=\"w-0.5 shrink-0 self-stretch rounded-full bg-foreground\" />\n                    <div className=\"space-y-1\">\n                      <p className=\"text-sm font-semibold\">Minute Hand</p>\n                      <p className=\"text-muted-foreground text-xs\">\n                        How fast your body is aging\n                      </p>\n                    </div>\n                  </div>\n\n                  <div className=\"flex gap-2\">\n                    <div className=\"shrink-0 self-stretch border-l-2 border-dashed border-foreground\" />                    <div className=\"space-y-1\">\n                      <p className=\"text-sm font-semibold\">Second Hand</p>\n                      <p className=\"text-muted-foreground text-xs\">\n                        What's causing the problem\n                      </p>\n                    </div>\n                  </div>\n                </div>\n              </CardContent>\n            </Card>\n\n            <div className=\"min-w-0 lg:col-span-2\">\n              <BiomarkerGrid />\n            </div>\n          </div>\n        </div>\n      </SidebarInset>\n    </SidebarProvider>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/dashboard/page.tsx"
    },
    {
      "path": "registry/predict/blocks/dashboard-01/components/app-sidebar.tsx",
      "content": "\"use client\"\n\nimport {\n  ActivityIcon,\n  CalendarCheckIcon,\n  FileTextIcon,\n  HomeIcon,\n  SettingsIcon,\n  UserIcon,\n} from \"lucide-react\"\n\nimport {\n  Sidebar,\n  SidebarContent,\n  SidebarFooter,\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarGroupLabel,\n  SidebarHeader,\n  SidebarMenu,\n  SidebarMenuBadge,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  SidebarRail,\n} from \"@workspace/ui/components/sidebar\"\nimport { Logo } from \"@workspace/ui/predict/logo\"\n\nconst health = [\n  { title: \"Overview\", icon: HomeIcon, isActive: true },\n  { title: \"Biomarkers\", icon: ActivityIcon, badge: \"9\" },\n  { title: \"Reports\", icon: FileTextIcon },\n  { title: \"Appointments\", icon: CalendarCheckIcon },\n]\n\nexport function AppSidebar() {\n  return (\n    <Sidebar collapsible=\"icon\">\n      <SidebarHeader className=\"h-14 justify-center px-4 group-data-[collapsible=icon]:px-2\">\n        <Logo\n          role=\"img\"\n          aria-label=\"PREDICT\"\n          className=\"h-4 w-auto group-data-[collapsible=icon]:hidden\"\n        />\n      </SidebarHeader>\n      <SidebarContent>\n        <SidebarGroup>\n          <SidebarGroupLabel>Health</SidebarGroupLabel>\n          <SidebarGroupContent>\n            <SidebarMenu>\n              {health.map((item) => (\n                <SidebarMenuItem key={item.title}>\n                  <SidebarMenuButton isActive={item.isActive} tooltip={item.title}>\n                    <item.icon />\n                    <span>{item.title}</span>\n                  </SidebarMenuButton>\n                  {item.badge && <SidebarMenuBadge>{item.badge}</SidebarMenuBadge>}\n                </SidebarMenuItem>\n              ))}\n            </SidebarMenu>\n          </SidebarGroupContent>\n        </SidebarGroup>\n      </SidebarContent>\n      <SidebarFooter>\n        <SidebarMenu>\n          <SidebarMenuItem>\n            <SidebarMenuButton tooltip=\"Settings\">\n              <SettingsIcon />\n              <span>Settings</span>\n            </SidebarMenuButton>\n          </SidebarMenuItem>\n          <SidebarMenuItem>\n            <SidebarMenuButton tooltip=\"Priya Sharma\">\n              <UserIcon />\n              <span>Priya Sharma</span>\n            </SidebarMenuButton>\n          </SidebarMenuItem>\n        </SidebarMenu>\n      </SidebarFooter>\n      <SidebarRail />\n    </Sidebar>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/dashboard/components/app-sidebar.tsx"
    },
    {
      "path": "registry/predict/blocks/dashboard-01/components/biomarker-grid.tsx",
      "content": "\"use client\"\n\nimport {\n  biomarkerRange,\n  getBiomarker,\n} from \"@workspace/ui/lib/biomarkers\"\nimport { ReferenceRange } from \"@workspace/ui/tools/reference-range\"\n\n// Example results for one panel.\nconst results = [\n  { id: \"hs-crp\", value: 3.5 },\n  { id: \"il-6\", value: 9.8 },\n  { id: \"hba1c\", value: 7.6 }, \n]\n\nexport function BiomarkerGrid() {\n  return (\n    <section className=\"flex w-full flex-col gap-3\">\n\n      <div className=\"grid gap-4\">\n        {results.map(({ id, value }) => {\n          const biomarker = getBiomarker(id)!\n          return (\n            <ReferenceRange\n              key={id}\n              name={biomarker.abbreviation}\n              description={biomarker.name}\n              value={value}\n              unit={biomarker.unit}\n              range={biomarkerRange(biomarker)}\n              className=\"max-w-none\"\n            />\n          )\n        })}\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/dashboard/components/biomarker-grid.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "1000px"
  },
  "categories": [
    "dashboard"
  ]
}