{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "meeting-card-base",
  "type": "registry:component",
  "title": "Meeting Card (base)",
  "description": "Theme-ready base variant of Summarize meeting details with time, participants, and quick action controls..",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "files": [
    {
      "path": "components/watermelon/meeting-card.tsx",
      "type": "registry:component",
      "content": "'use client';\n\nimport React, { useState } from 'react';\nimport { motion, AnimatePresence } from 'motion/react';\nimport {\n  ChevronUp,\n  Calendar,\n  Clock,\n  Bell,\n  Video,\n  Users,\n  Link as LinkIcon,\n  MoreHorizontal,\n} from 'lucide-react';\n\ninterface Participant {\n  name: string;\n  avatar: string;\n}\n\ninterface MeetingCardProps {\n  title: string;\n  date: string;\n  time: string;\n  duration: string;\n  meetingLink: string;\n  notification: string;\n  recording?: boolean;\n  aiNotes?: boolean;\n  participants: Participant[];\n  description: string;\n}\n\nexport const MeetingCard: React.FC<MeetingCardProps> = ({\n  title,\n  date,\n  time,\n  duration,\n  meetingLink,\n  notification,\n  participants,\n  description,\n}) => {\n  const [expanded, setExpanded] = useState(true);\n  const [theme] = useState<'light' | 'dark'>('light');\n  const [isRecording, setIsRecording] = useState(true);\n  const [isAiEnabled, setIsAiEnabled] = useState(true);\n\n  const spring = { type: 'spring', stiffness: 300, damping: 30 } as const;\n\n  return (\n    <div className={`theme-injected ${theme === 'dark' ? 'dark' : ''}`}>\n      <div className=\"relative mt-12 flex w-full flex-col items-center justify-center p-2 sm:p-6\">\n        <div className=\"w-full max-w-full lg:w-100 lg:max-w-100\">\n          <motion.div\n            layout=\"size\"\n            transition={spring}\n            className=\"bg-card text-card-foreground border-border w-full overflow-hidden rounded-xl border shadow-lg\"\n          >\n            <div\n              className=\"flex cursor-pointer items-center justify-between gap-2 p-4 select-none\"\n              onClick={() => setExpanded(!expanded)}\n            >\n              <div className=\"flex min-w-0 items-center gap-3\">\n                <div className=\"bg-primary flex h-9 w-9 shrink-0 items-center justify-center rounded-md\">\n                  <Calendar size={18} className=\"text-primary-foreground\" />\n                </div>\n                <div className=\"min-w-0\">\n                  <p className=\"text-foreground truncate text-sm font-bold\">\n                    {title}\n                  </p>\n                  <p className=\"text-muted-foreground text-xs\">Today, {time}</p>\n                </div>\n              </div>\n\n              <div className=\"flex shrink-0 items-center gap-2 sm:gap-3\">\n                <div className=\"flex -space-x-2 overflow-hidden\">\n                  {participants.slice(0, 3).map((p, i) => (\n                    <img\n                      key={i}\n                      src={p.avatar}\n                      className=\"border-background h-6 w-6 rounded-full border-2 object-cover\"\n                      alt={p.name}\n                    />\n                  ))}\n                </div>\n                <motion.div\n                  animate={{ rotate: expanded ? 0 : 180 }}\n                  className=\"border-border bg-background text-muted-foreground flex h-8 w-8 items-center justify-center rounded-md border\"\n                >\n                  <ChevronUp size={18} />\n                </motion.div>\n              </div>\n            </div>\n\n            <AnimatePresence initial={false} mode=\"sync\">\n              {expanded && (\n                <motion.div\n                  initial={{ height: 0, opacity: 0 }}\n                  animate={{ height: 'auto', opacity: 1 }}\n                  exit={{ height: 0, opacity: 0 }}\n                  transition={spring}\n                  className=\"overflow-hidden\"\n                >\n                  <div className=\"text-muted-foreground border-border bg-background space-y-4 rounded-t-xl border-t p-4 text-sm\">\n                    <Row icon={<Calendar size={15} />} label=\"Date\">\n                      <Tag>{date}</Tag>\n                    </Row>\n\n                    <Row icon={<Clock size={15} />} label=\"Time\">\n                      <div className=\"flex flex-wrap items-center justify-end gap-1\">\n                        <Tag>{time}</Tag>\n                        <span className=\"text-muted-foreground text-xs\">\n                          to\n                        </span>\n                        <Tag>{duration}</Tag>\n                      </div>\n                    </Row>\n\n                    <Row icon={<Video size={15} />} label=\"Link\">\n                      <Tag className=\"xs:max-w-44 max-w-32 sm:max-w-56 md:max-w-64 lg:max-w-72\">\n                        <LinkIcon size={12} className=\"shrink-0\" />\n                        <span className=\"truncate\">{meetingLink}</span>\n                      </Tag>\n                    </Row>\n\n                    <Row icon={<Bell size={15} />} label=\"Notification\">\n                      <Tag>{notification}</Tag>\n                    </Row>\n\n                    <Row icon={<Video size={15} />} label=\"Recording\">\n                      <Toggle active={isRecording} onChange={setIsRecording} />\n                    </Row>\n\n                    <Row icon={<Users size={15} />} label=\"AI notetaking\">\n                      <Toggle active={isAiEnabled} onChange={setIsAiEnabled} />\n                    </Row>\n\n                    {/* Participants */}\n                    <div className=\"border-border space-y-2 border-t pt-3\">\n                      <p className=\"text-muted-foreground text-xs font-medium\">\n                        Participants\n                      </p>\n                      <div className=\"flex flex-wrap items-center gap-2\">\n                        {participants.map((p, i) => (\n                          <div\n                            key={i}\n                            className=\"bg-muted/50 border-border flex items-center gap-2 rounded-md border px-2 py-1\"\n                          >\n                            <img\n                              src={p.avatar}\n                              className=\"h-5 w-5 rounded-full\"\n                              alt=\"\"\n                            />\n                            <span className=\"text-foreground text-xs font-medium\">\n                              {p.name}\n                            </span>\n                          </div>\n                        ))}\n                      </div>\n                    </div>\n\n                    {/* Description */}\n                    <div className=\"border-border border-t pt-3\">\n                      <p className=\"text-muted-foreground mb-1 text-xs font-medium\">\n                        Description\n                      </p>\n                      <p className=\"text-muted-foreground text-xs leading-relaxed\">\n                        {description}\n                      </p>\n                    </div>\n                  </div>\n\n                  {/* Footer */}\n                  <div className=\"bg-muted/40 border-border flex flex-wrap items-center justify-between gap-3 border-t p-3\">\n                    <p className=\"text-muted-foreground text-sm font-medium\">\n                      Going?\n                    </p>\n                    <div className=\"flex flex-wrap items-center gap-1.5 sm:flex-nowrap\">\n                      {['Yes', 'No', 'Maybe'].map((opt) => (\n                        <button\n                          key={opt}\n                          className=\"border-border text-foreground bg-background active:bg-accent rounded-md border px-3 py-1 text-xs font-medium transition-colors sm:text-sm\"\n                        >\n                          {opt}\n                        </button>\n                      ))}\n                      <MoreHorizontal\n                        size={16}\n                        className=\"text-muted-foreground xs:block ml-1 hidden cursor-pointer\"\n                      />\n                    </div>\n                  </div>\n                </motion.div>\n              )}\n            </AnimatePresence>\n          </motion.div>\n        </div>\n      </div>\n    </div>\n  );\n};\n\nconst Row = ({\n  icon,\n  label,\n  children,\n}: {\n  icon: React.ReactNode;\n  label: string;\n  children: React.ReactNode;\n}) => (\n  <div className=\"flex items-center justify-between gap-2\">\n    <div className=\"text-muted-foreground flex shrink-0 items-center gap-2\">\n      {icon}\n      <span className=\"text-xs font-medium whitespace-nowrap\">{label}</span>\n    </div>\n    <div className=\"flex min-w-0 flex-1 justify-end\">{children}</div>\n  </div>\n);\n\nconst Tag = ({\n  children,\n  className = '',\n}: {\n  children: React.ReactNode;\n  className?: string;\n}) => (\n  <div\n    className={`border-border text-foreground bg-muted/40 flex items-center gap-1 overflow-hidden rounded-md border px-2 py-1 text-xs whitespace-nowrap ${className}`}\n  >\n    {children}\n  </div>\n);\n\nconst Toggle = ({\n  active,\n  onChange,\n}: {\n  active: boolean;\n  onChange: (v: boolean) => void;\n}) => {\n  return (\n    <div\n      onClick={() => onChange(!active)}\n      className={`flex h-6 w-10 cursor-pointer items-center rounded-full px-1 transition-colors duration-200 ${\n        active ? 'bg-primary/20' : 'bg-muted'\n      }`}\n    >\n      <motion.div\n        layout\n        transition={{ type: 'spring', stiffness: 500, damping: 30 }}\n        animate={{ x: active ? 16 : 0 }}\n        className={`h-4 w-4 rounded-full shadow-xs ${\n          active ? 'bg-primary' : 'bg-muted-foreground'\n        }`}\n      />\n    </div>\n  );\n};\n"
    }
  ]
}
