{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "schedule-card",
  "title": "Schedule Card",
  "description": "A recurring agent job with human-readable timing, next run, and pause controls.",
  "dependencies": [
    "@solar-icons/react@^2.2.0",
    "cn@^0.3.0"
  ],
  "registryDependencies": [
    "button",
    "https://pastaui.com/r/pastaui-styles.json"
  ],
  "files": [
    {
      "path": "src/components/ai/schedule-card.tsx",
      "content": "import { CalendarDateIcon as CalendarClockIcon } from '@solar-icons/react/linear/calendar-date'\nimport * as React from 'react'\n\nimport { Button } from '@/components/ui/button'\nimport { cn } from 'cn'\n\ninterface ScheduleCardProps extends React.ComponentProps<'article'> {\n  description?: string\n  nextRun: string\n  onEdit?: () => void\n  onToggle?: () => void\n  schedule: string\n  status?: 'active' | 'paused'\n  timezone?: string\n  title: string\n}\n\nfunction ScheduleCard({\n  className,\n  description,\n  nextRun,\n  onEdit,\n  onToggle,\n  schedule,\n  status = 'active',\n  timezone,\n  title,\n  ...props\n}: ScheduleCardProps) {\n  const isPaused = status === 'paused'\n\n  return (\n    <article\n      data-slot=\"schedule-card\"\n      className={cn(\n        'rounded-[16px] bg-card p-5 font-sans text-sm font-[450] tracking-[-0.05px] text-muted-foreground shadow-card',\n        className,\n      )}\n      {...props}\n    >\n      <header className=\"flex items-start gap-3\">\n        <span className=\"flex size-9 shrink-0 items-center justify-center rounded-[10px] bg-foreground/6 text-muted-foreground\">\n          <CalendarClockIcon className=\"size-4\" />\n        </span>\n        <div className=\"min-w-0 flex-1\">\n          <div className=\"flex items-center gap-3\">\n            <h3 className=\"min-w-0 flex-1 truncate text-[15px] leading-6 font-medium text-foreground\">\n              {title}\n            </h3>\n            <span\n              className=\"flex shrink-0 items-center gap-1.5 text-xs leading-5 text-muted-foreground transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] starting:scale-95 starting:opacity-0 motion-reduce:starting:scale-100\"\n              key={status}\n            >\n              <span\n                aria-hidden=\"true\"\n                className={cn(\n                  'size-1.5 rounded-full',\n                  isPaused ? 'bg-muted-foreground/60' : 'bg-emerald-500',\n                )}\n              />\n              {isPaused ? 'Paused' : 'Active'}\n            </span>\n          </div>\n          {description && (\n            <p className=\"mt-0.5 text-sm leading-5 text-muted-foreground\">{description}</p>\n          )}\n        </div>\n      </header>\n\n      <dl className=\"mt-5 grid gap-3 rounded-[12px] bg-foreground/4 p-4 sm:grid-cols-2\">\n        <div>\n          <dt className=\"text-xs leading-5 text-muted-foreground\">Schedule</dt>\n          <dd className=\"mt-0.5 text-sm text-foreground/85\">\n            {schedule}\n            {timezone && <span className=\"text-muted-foreground\"> {timezone}</span>}\n          </dd>\n        </div>\n        <div>\n          <dt className=\"text-xs leading-5 text-muted-foreground\">Next run</dt>\n          <dd\n            className={cn(\n              'mt-0.5 text-sm',\n              isPaused ? 'text-muted-foreground' : 'text-foreground/85',\n            )}\n          >\n            {isPaused ? 'Not scheduled' : nextRun}\n          </dd>\n        </div>\n      </dl>\n\n      <footer className=\"mt-4 flex justify-end gap-2\">\n        <Button\n          className=\"h-7 rounded-full bg-foreground/8 px-3 text-sm font-[450] tracking-[-0.05px] text-foreground/85 hover:bg-foreground/12 hover:text-foreground\"\n          onClick={onEdit}\n          size=\"sm\"\n          type=\"button\"\n          variant=\"ghost\"\n        >\n          Edit\n        </Button>\n        <Button\n          className=\"h-7 rounded-full bg-foreground/8 px-3 text-sm font-[450] tracking-[-0.05px] text-foreground/85 hover:bg-foreground/12 hover:text-foreground\"\n          onClick={onToggle}\n          size=\"sm\"\n          type=\"button\"\n          variant=\"ghost\"\n        >\n          {isPaused ? 'Resume' : 'Pause'}\n        </Button>\n      </footer>\n    </article>\n  )\n}\n\nexport { ScheduleCard }\nexport type { ScheduleCardProps }\n",
      "type": "registry:component",
      "target": "@components/ai/schedule-card.tsx"
    }
  ],
  "type": "registry:component"
}