{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "health3",
  "title": "Medical Specialists Directory",
  "description": "Doctor cards grid showing specialists with ratings, availability status, and next appointment slots. Perfect for healthcare platforms and telemedicine booking systems.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/health3/health3.tsx",
      "content": "\"use client\";\n\nimport {\n  Baby,\n  Bone,\n  Brain,\n  Clock,\n  Eye,\n  Heart,\n  type LucideIcon,\n  Star,\n  Stethoscope,\n} from \"lucide-react\";\nimport Link from \"next/link\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Specialist {\n  icon: LucideIcon;\n  name: string;\n  specialty: string;\n  rating: number;\n  reviewCount: number;\n  availability: \"available\" | \"busy\" | \"unavailable\";\n  nextSlot?: string;\n}\n\ninterface ButtonItem {\n  label: string;\n  href?: string;\n  variant?: \"default\" | \"secondary\" | \"outline\" | \"ghost\";\n}\n\ninterface Health3Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  specialists?: Specialist[];\n  buttons?: ButtonItem[];\n  className?: string;\n}\n\nconst availabilityMap = {\n  available: {\n    label: \"Available\",\n    color: \"bg-emerald-500\",\n    textColor: \"text-emerald-600 dark:text-emerald-400\",\n  },\n  busy: {\n    label: \"Busy\",\n    color: \"bg-amber-500\",\n    textColor: \"text-amber-600 dark:text-amber-400\",\n  },\n  unavailable: {\n    label: \"Unavailable\",\n    color: \"bg-gray-400\",\n    textColor: \"text-gray-500\",\n  },\n};\n\nexport const health3Demo: Health3Props = {\n  badge: { label: \"Find a Specialist\", variant: \"outline\" },\n  heading: \"Expert care, when you need it\",\n  description:\n    \"Connect with top-rated specialists across all medical fields. Book your appointment today.\",\n  specialists: [\n    {\n      icon: Heart,\n      name: \"Dr. Sarah Chen\",\n      specialty: \"Cardiologist\",\n      rating: 4.9,\n      reviewCount: 128,\n      availability: \"available\",\n      nextSlot: \"Today, 2:00 PM\",\n    },\n    {\n      icon: Brain,\n      name: \"Dr. Michael Park\",\n      specialty: \"Neurologist\",\n      rating: 4.8,\n      reviewCount: 94,\n      availability: \"busy\",\n      nextSlot: \"Tomorrow, 10:00 AM\",\n    },\n    {\n      icon: Bone,\n      name: \"Dr. Emily Watson\",\n      specialty: \"Orthopedist\",\n      rating: 4.7,\n      reviewCount: 156,\n      availability: \"available\",\n      nextSlot: \"Today, 4:30 PM\",\n    },\n    {\n      icon: Stethoscope,\n      name: \"Dr. James Miller\",\n      specialty: \"General Practitioner\",\n      rating: 4.9,\n      reviewCount: 203,\n      availability: \"available\",\n      nextSlot: \"Today, 11:00 AM\",\n    },\n    {\n      icon: Eye,\n      name: \"Dr. Lisa Thompson\",\n      specialty: \"Ophthalmologist\",\n      rating: 4.6,\n      reviewCount: 87,\n      availability: \"unavailable\",\n    },\n    {\n      icon: Baby,\n      name: \"Dr. David Kim\",\n      specialty: \"Pediatrician\",\n      rating: 4.8,\n      reviewCount: 312,\n      availability: \"available\",\n      nextSlot: \"Today, 3:00 PM\",\n    },\n  ],\n  buttons: [\n    { label: \"View all specialists\", href: \"https://beste.co\" },\n    {\n      label: \"Emergency care\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n};\n\nexport function Health3({\n  badge,\n  heading,\n  description,\n  specialists = [],\n  buttons = [],\n  className,\n}: Health3Props) {\n  if (specialists.length === 0) return null;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        {(badge || heading || description) && (\n          <div className=\"mx-auto mb-14 max-w-3xl text-center\">\n            {badge && (\n              <div className=\"mb-5 flex justify-center\">\n                <Badge variant={badge.variant ?? \"default\"}>{badge.label}</Badge>\n              </div>\n            )}\n            {heading && (\n              <h2 className=\"text-3xl font-semibold md:text-5xl text-balance\">{heading}</h2>\n            )}\n            {description && (\n              <p className=\"mt-4 text-base md:text-lg text-balance text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n\n        <div className=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n          {specialists.map((specialist, index) => {\n            const Icon = specialist.icon;\n            const availability = availabilityMap[specialist.availability];\n\n            return (\n              <div\n                key={index}\n                className=\"group/health3 flex flex-col rounded-2xl border bg-card p-6 transition-all hover:shadow-lg\"\n              >\n                {/* Header */}\n                <div className=\"flex items-start justify-between\">\n                  <div className=\"flex size-12 items-center justify-center rounded-xl bg-primary/10\">\n                    <Icon className=\"size-6 text-primary\" />\n                  </div>\n                  <div className=\"flex items-center gap-1\">\n                    <span className={cn(\"size-2 rounded-full\", availability.color)} />\n                    <span className={cn(\"text-xs\", availability.textColor)}>\n                      {availability.label}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Doctor info */}\n                <div className=\"mt-4\">\n                  <h3 className=\"font-semibold\">{specialist.name}</h3>\n                  <p className=\"text-sm text-muted-foreground\">{specialist.specialty}</p>\n                </div>\n\n                {/* Rating */}\n                <div className=\"mt-3 flex items-center gap-2\">\n                  <div className=\"flex items-center gap-1\">\n                    <Star className=\"size-4 fill-amber-400 text-amber-400\" />\n                    <span className=\"text-sm font-medium\">{specialist.rating}</span>\n                  </div>\n                  <span className=\"text-sm text-muted-foreground\">\n                    ({specialist.reviewCount} reviews)\n                  </span>\n                </div>\n\n                {/* Next available slot */}\n                {specialist.nextSlot && (\n                  <div className=\"mt-4 flex items-center gap-2 rounded-lg bg-muted/50 px-3 py-2\">\n                    <Clock className=\"size-4 text-muted-foreground\" />\n                    <span className=\"text-sm\">\n                      Next: <span className=\"font-medium\">{specialist.nextSlot}</span>\n                    </span>\n                  </div>\n                )}\n\n                {/* Spacer to push button to bottom */}\n                <div className=\"flex-1\" />\n\n                {/* Book button */}\n                <Button\n                  className=\"mt-4 w-full\"\n                  variant={specialist.availability === \"unavailable\" ? \"secondary\" : \"default\"}\n                  disabled={specialist.availability === \"unavailable\"}\n                >\n                  {specialist.availability === \"unavailable\" ? \"Not Available\" : \"Book Appointment\"}\n                </Button>\n              </div>\n            );\n          })}\n        </div>\n\n        {buttons.length > 0 && (\n          <div className=\"mt-10 flex flex-wrap justify-center gap-3\">\n            {buttons.map((button, index) => (\n              <Button key={index} variant={button.variant ?? \"default\"} asChild>\n                <Link href={button.href ?? \"#\"}>{button.label}</Link>\n              </Button>\n            ))}\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/health3.tsx"
    }
  ],
  "type": "registry:block"
}