{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "empty-state",
  "title": "Empty State",
  "description": "A first screen that gives people somewhere to start: worked examples, the first three things to do, or a ghost of the filled screen with sample data.",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "utils",
    "https://miseui.junsu4621.workers.dev/r/motion.json",
    "https://miseui.junsu4621.workers.dev/r/button.json",
    "https://miseui.junsu4621.workers.dev/r/checkbox.json",
    "https://miseui.junsu4621.workers.dev/r/progress.json",
    "https://miseui.junsu4621.workers.dev/r/status.json"
  ],
  "files": [
    {
      "path": "registry/miseui/blocks/empty-state.tsx",
      "content": "import type * as React from \"react\"\nimport { ArrowRight, FileText, ListChecks, Mic } from \"lucide-react\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { Button } from \"@/registry/miseui/ui/button\"\nimport { EmptyStateChecklist, type EmptyStateChecklistProps, type EmptyStateTask } from \"./empty-state-checklist\"\nimport { EmptyStateSample, type EmptyStateSampleProps, type EmptyStateSampleRow } from \"./empty-state-sample\"\n\ntype EmptyStateVariant = \"centered\" | \"checklist\" | \"sample\"\n\ninterface EmptyStateStarter {\n  id: string\n  title: string\n  description: string\n  icon: React.ComponentType<{ className?: string }>\n}\n\nconst DEFAULT_STARTERS: readonly EmptyStateStarter[] = [\n  { id: \"summary\", title: \"Summarize a document\", description: \"Drop in a PDF and get the five things that matter.\", icon: FileText },\n  { id: \"plan\", title: \"Turn notes into a plan\", description: \"Paste rough notes. Leave with owners and dates.\", icon: ListChecks },\n  { id: \"meeting\", title: \"Record a meeting\", description: \"Talk for an hour, read the two-minute version.\", icon: Mic },\n]\n\ninterface EmptyStateCenteredProps extends React.ComponentProps<\"section\"> {\n  title?: string\n  description?: string\n  actionLabel?: string\n  onAction?: () => void\n  /** Starting points, so nobody has to invent the first prompt. Pass an empty list to hide them. */\n  starters?: readonly EmptyStateStarter[]\n  onStarter?: (id: string) => void\n}\n\nfunction EmptyStateCentered({\n  title = \"Your first project starts here\",\n  description = \"Start from an example or from nothing. You can change everything later.\",\n  actionLabel = \"New project\",\n  onAction,\n  starters = DEFAULT_STARTERS,\n  onStarter,\n  className,\n  ...props\n}: EmptyStateCenteredProps) {\n  return (\n    <section data-slot=\"empty-state\" data-variant=\"centered\" className={cn(\"@container w-full px-6 py-14\", className)} {...props}>\n      <div className=\"mx-auto flex max-w-2xl flex-col items-start gap-8 @2xl:items-center\">\n        <div className=\"flex flex-col gap-3 @2xl:items-center @2xl:text-center\">\n          <h2 className=\"text-display text-3xl text-balance @2xl:text-4xl\">{title}</h2>\n          <p className=\"max-w-md text-[15px] leading-relaxed text-pretty text-muted-foreground\">{description}</p>\n          <Button variant=\"mise\" size=\"lg\" onClick={onAction} className=\"mt-2\">\n            {actionLabel} <ArrowRight />\n          </Button>\n        </div>\n        {starters.length > 0 ? (\n          <ul className=\"flex w-full flex-col divide-y rounded-2xl border bg-card\">\n            {starters.map((starter) => (\n              <li key={starter.id}>\n                <button\n                  type=\"button\"\n                  onClick={() => onStarter?.(starter.id)}\n                  className=\"group flex w-full items-center gap-4 rounded-2xl px-4 py-3.5 text-left outline-none transition-colors duration-(--duration-fast) ease-(--ease-mise) hover:bg-accent/60 focus-visible:ring-[3px] focus-visible:ring-inset focus-visible:ring-ring/50\"\n                >\n                  <span className=\"grid size-9 shrink-0 place-items-center rounded-xl bg-muted text-muted-foreground transition-colors duration-(--duration-fast) ease-(--ease-mise) group-hover:bg-mise-soft group-hover:text-foreground\">\n                    <starter.icon className=\"size-4\" />\n                  </span>\n                  <span className=\"min-w-0 flex-1\">\n                    <span className=\"block text-sm font-medium\">{starter.title}</span>\n                    <span className=\"block text-sm text-pretty text-muted-foreground\">{starter.description}</span>\n                  </span>\n                  <ArrowRight className=\"size-4 shrink-0 text-muted-foreground opacity-0 transition-[opacity,translate] duration-(--duration-fast) ease-(--ease-mise) group-hover:translate-x-0.5 group-hover:opacity-100\" />\n                </button>\n              </li>\n            ))}\n          </ul>\n        ) : null}\n      </div>\n    </section>\n  )\n}\n\ntype EmptyStateVariantProps = Pick<EmptyStateChecklistProps, \"tasks\" | \"completed\" | \"defaultCompleted\" | \"onCompletedChange\" | \"onTask\"> &\n  Pick<EmptyStateSampleProps, \"sampleRows\" | \"sampleLabel\" | \"onUseSample\" | \"onClearSample\">\n\ninterface EmptyStateProps extends EmptyStateCenteredProps, EmptyStateVariantProps {\n  /** `centered` gives examples to start from, `checklist` the first things to do, `sample` a ghost of the filled screen. Anything else is `centered`. */\n  variant?: EmptyStateVariant\n}\n\nfunction EmptyState({\n  variant,\n  starters,\n  onStarter,\n  tasks,\n  completed,\n  defaultCompleted,\n  onCompletedChange,\n  onTask,\n  sampleRows,\n  sampleLabel,\n  onUseSample,\n  onClearSample,\n  ...shared\n}: EmptyStateProps) {\n  if (variant === \"checklist\") {\n    return <EmptyStateChecklist {...shared} tasks={tasks} completed={completed} defaultCompleted={defaultCompleted} onCompletedChange={onCompletedChange} onTask={onTask} />\n  }\n  if (variant === \"sample\") {\n    return <EmptyStateSample {...shared} sampleRows={sampleRows} sampleLabel={sampleLabel} onUseSample={onUseSample} onClearSample={onClearSample} />\n  }\n  return <EmptyStateCentered {...shared} starters={starters} onStarter={onStarter} />\n}\n\nexport { EmptyState, type EmptyStateProps, type EmptyStateSampleRow, type EmptyStateStarter, type EmptyStateTask, type EmptyStateVariant }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/empty-state-checklist.tsx",
      "content": "import type * as React from \"react\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { Button } from \"@/registry/miseui/ui/button\"\nimport { Checkbox } from \"@/registry/miseui/ui/checkbox\"\nimport { Progress } from \"@/registry/miseui/ui/progress\"\n\ninterface EmptyStateTask {\n  id: string\n  title: string\n  description: string\n  actionLabel: string\n}\n\nconst DEFAULT_TASKS: readonly EmptyStateTask[] = [\n  { id: \"project\", title: \"Create your first project\", description: \"Give it a name. You can change it later.\", actionLabel: \"New project\" },\n  { id: \"document\", title: \"Add a document\", description: \"Drop in a PDF and get the five things that matter.\", actionLabel: \"Upload a PDF\" },\n  { id: \"invite\", title: \"Invite one person\", description: \"Work is easier to finish with someone reading along.\", actionLabel: \"Invite\" },\n]\n\nconst FOCUS_NEXT_SELECTOR = \"[data-focus-next]\"\n\n/** Tinted from the ink, and off in dark mode, where a light-tinted shadow would read as a glow. */\nconst PLATE_CLASS =\n  \"rounded-2xl border bg-background dark:bg-card shadow-[0_1px_2px_color-mix(in_oklab,var(--foreground)_6%,transparent),0_16px_32px_-16px_color-mix(in_oklab,var(--foreground)_16%,transparent)] dark:shadow-none\"\n\ninterface EmptyStateChecklistProps extends React.ComponentProps<\"section\"> {\n  title?: string\n  /** Continues the title in the same size, one tone quieter. */\n  description?: string\n  /** The button shown once every task is done. */\n  actionLabel?: string\n  onAction?: () => void\n  /** The first things to do. Three is the point: more than that reads as homework. */\n  tasks?: readonly EmptyStateTask[]\n  /** Ids of finished tasks. Pass it to decide yourself when a task counts as done; leave it out and pressing a task's button ticks it. */\n  completed?: readonly string[]\n  defaultCompleted?: readonly string[]\n  onCompletedChange?: (completed: readonly string[]) => void\n  /** Fires with the task whose button was pressed. Open your dialog or route here. */\n  onTask?: (id: string) => void\n}\n\nfunction useCompleted(\n  completed: readonly string[] | undefined,\n  defaultCompleted: readonly string[],\n  onChange?: (completed: readonly string[]) => void,\n) {\n  const [internal, setInternal] = useState(defaultCompleted)\n  const current = completed ?? internal\n  const set = (id: string, done: boolean) => {\n    const next = done ? [...current.filter((item) => item !== id), id] : current.filter((item) => item !== id)\n    setInternal(next)\n    onChange?.(next)\n  }\n  return [current, set, completed !== undefined] as const\n}\n\ninterface TaskRowProps {\n  task: EmptyStateTask\n  done: boolean\n  next: boolean\n  onToggle: (done: boolean) => void\n  onAction: () => void\n}\n\nfunction TaskRow({ task, done, next, onToggle, onAction }: TaskRowProps) {\n  return (\n    <li data-state={done ? \"done\" : next ? \"next\" : \"later\"} className=\"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-3 p-4 @md:grid-cols-[auto_minmax(0,1fr)_auto] @md:items-center @2xl:px-6\">\n      {/* The label is the hit target: a 16 px box stays 16 px while the press area reaches 40. */}\n      <label className=\"-mx-2 -my-2 inline-flex size-10 cursor-pointer items-center justify-center self-start\">\n        <Checkbox aria-label={task.title} checked={done} onCheckedChange={(state) => onToggle(state === true)} />\n      </label>\n      <div className=\"min-w-0\">\n        <p className={cn(\"text-[15px] leading-normal text-pretty\", done && \"text-muted-foreground line-through\")}>{task.title}</p>\n        {done ? null : <p className=\"mt-1 text-[13px] leading-relaxed text-pretty text-muted-foreground\">{task.description}</p>}\n      </div>\n      {done ? null : (\n        <Button\n          variant={next ? \"mise\" : \"ghost\"}\n          data-focus-next={next ? \"\" : undefined}\n          onClick={onAction}\n          className=\"col-start-2 justify-self-start pointer-coarse:h-10 @md:col-start-3 @md:row-start-1\"\n        >\n          {task.actionLabel}\n        </Button>\n      )}\n    </li>\n  )\n}\n\n/** A pressed task button disappears with its row, which would drop keyboard focus onto the page. */\nfunction useFocusAfterAction(plate: React.RefObject<HTMLDivElement | null>, doneCount: number) {\n  const pendingRef = useRef(false)\n  useEffect(() => {\n    if (!pendingRef.current) return\n    pendingRef.current = false\n    plate.current?.querySelector<HTMLElement>(FOCUS_NEXT_SELECTOR)?.focus()\n  }, [doneCount, plate])\n  return pendingRef\n}\n\ninterface ChecklistPlateProps {\n  tasks: readonly EmptyStateTask[]\n  done: readonly string[]\n  finish: React.ReactNode\n  onToggle: (id: string, done: boolean) => void\n  onPress: (id: string) => void\n  plateRef: React.RefObject<HTMLDivElement | null>\n}\n\nfunction ChecklistPlate({ tasks, done, finish, onToggle, onPress, plateRef }: ChecklistPlateProps) {\n  const doneCount = tasks.filter((task) => done.includes(task.id)).length\n  const nextId = tasks.find((task) => !done.includes(task.id))?.id\n  return (\n    <div ref={plateRef} className={PLATE_CLASS}>\n      <div className=\"flex flex-col gap-3 border-b p-4 @2xl:px-6\">\n        <p role=\"status\" className=\"text-[13px] text-muted-foreground tabular-nums\">\n          {doneCount} of {tasks.length} done\n        </p>\n        {/* In ink: the one accent on this screen belongs to the next thing to press. */}\n        <Progress\n          variant=\"segmented\"\n          effect=\"spring\"\n          label=\"Setup progress\"\n          value={doneCount}\n          max={tasks.length}\n          steps={tasks.length}\n          className=\"[&_[data-slot=progress-segment]>span]:bg-foreground\"\n        />\n      </div>\n      <ol className=\"flex flex-col divide-y\">\n        {tasks.map((task) => (\n          <TaskRow\n            key={task.id}\n            task={task}\n            done={done.includes(task.id)}\n            next={task.id === nextId}\n            onToggle={(state) => onToggle(task.id, state)}\n            onAction={() => onPress(task.id)}\n          />\n        ))}\n      </ol>\n      {doneCount === tasks.length ? (\n        <div className=\"flex flex-wrap items-center justify-between gap-3 border-t p-4 @2xl:px-6\">\n          <p className=\"text-[15px]\">That is everything.</p>\n          {finish}\n        </div>\n      ) : null}\n    </div>\n  )\n}\n\nfunction EmptyStateChecklist({\n  title = \"Three things to do first.\",\n  description = \"About five minutes, and you can skip around.\",\n  actionLabel = \"Open your project\",\n  onAction,\n  tasks = DEFAULT_TASKS,\n  completed,\n  defaultCompleted = [],\n  onCompletedChange,\n  onTask,\n  className,\n  ...props\n}: EmptyStateChecklistProps) {\n  const [done, setDone, controlled] = useCompleted(completed, defaultCompleted, onCompletedChange)\n  const plateRef = useRef<HTMLDivElement>(null)\n  const pendingFocusRef = useFocusAfterAction(plateRef, done.length)\n\n  const pressTask = (id: string) => {\n    onTask?.(id)\n    if (controlled) return\n    pendingFocusRef.current = true\n    setDone(id, true)\n  }\n  const finish = (\n    <Button variant=\"mise\" data-focus-next=\"\" onClick={onAction} className=\"pointer-coarse:h-10\">\n      {actionLabel}\n    </Button>\n  )\n\n  return (\n    <section data-slot=\"empty-state\" data-variant=\"checklist\" className={cn(\"@container w-full bg-muted dark:bg-background\", className)} {...props}>\n      <div className=\"px-4 py-12 @2xl:px-8 @2xl:py-20\">\n        <div className=\"mx-auto flex max-w-2xl flex-col gap-8\">\n          <h2 className=\"text-display text-3xl text-balance @2xl:text-4xl\">\n            {title} <span className=\"text-muted-foreground\">{description}</span>\n          </h2>\n          {tasks.length === 0 ? <div>{finish}</div> : <ChecklistPlate tasks={tasks} done={done} finish={finish} onToggle={setDone} onPress={pressTask} plateRef={plateRef} />}\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { EmptyStateChecklist, type EmptyStateChecklistProps, type EmptyStateTask }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/empty-state-sample.tsx",
      "content": "import type * as React from \"react\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { motion, useReducedMotion } from \"motion/react\"\nimport { SPRING_DEFAULT } from \"@/registry/miseui/lib/motion\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { Button } from \"@/registry/miseui/ui/button\"\nimport { Status, type StatusTone } from \"@/registry/miseui/ui/status\"\n\ninterface EmptyStateSampleRow {\n  id: string\n  title: string\n  detail: string\n  status: string\n  tone?: StatusTone\n  when: string\n}\n\n/** Invented rows, shown only after someone asks for them, and labelled as made up on the screen. */\nconst DEFAULT_ROWS: readonly EmptyStateSampleRow[] = [\n  { id: \"board\", title: \"Q3 board summary\", detail: \"Five things from a 42 page PDF\", status: \"In review\", tone: \"warning\", when: \"2 hours ago\" },\n  { id: \"plan\", title: \"Onboarding plan\", detail: \"Rough notes with owners and dates\", status: \"Draft\", tone: \"neutral\", when: \"Yesterday\" },\n  { id: \"sync\", title: \"Weekly sync\", detail: \"The two-minute version\", status: \"Done\", tone: \"success\", when: \"Oct 28\" },\n  { id: \"pricing\", title: \"Pricing research\", detail: \"Eleven sources, one page\", status: \"Draft\", tone: \"neutral\", when: \"Oct 24\" },\n]\n\n/** Different on every row, because equal bars read as a loading skeleton and not as a screen waiting to be filled. */\nconst GHOST_WIDTHS = [\n  [\"w-2/5\", \"w-3/5\"],\n  [\"w-1/3\", \"w-1/2\"],\n  [\"w-1/2\", \"w-2/5\"],\n  [\"w-1/4\", \"w-3/5\"],\n  [\"w-2/5\", \"w-1/3\"],\n  [\"w-1/3\", \"w-1/2\"],\n] as const\n\nconst ROW_CLASS = \"grid min-h-16 grid-cols-[minmax(0,1fr)_auto] items-center gap-4 px-4 py-3 @2xl:grid-cols-[minmax(0,1fr)_112px_96px] @2xl:px-6\"\nconst BAR_CLASS = \"block h-2 rounded-full bg-foreground/10 dark:bg-foreground/15\"\n\ntype SamplePhase = \"ghost\" | \"loading\" | \"failed\" | \"loaded\"\n\ninterface EmptyStateSampleProps extends React.ComponentProps<\"section\"> {\n  title?: string\n  /** Continues the title in the same size, one tone quieter. */\n  description?: string\n  /** The way past the sample: starting for real. */\n  actionLabel?: string\n  onAction?: () => void\n  /** What the ghost turns into. The ghost has as many rows, so nothing jumps. */\n  sampleRows?: readonly EmptyStateSampleRow[]\n  sampleLabel?: string\n  /** Load the sample here. Return a promise to show progress and a retry if it rejects. */\n  onUseSample?: () => void | Promise<void>\n  onClearSample?: () => void\n}\n\n/** Bars and no words: real-looking figures in an empty product would read as someone else's data. */\nfunction SampleGhost({ rows }: { rows: number }) {\n  return (\n    <div data-testid=\"empty-state-ghost\" aria-hidden=\"true\" className=\"rounded-2xl border border-dashed bg-background/60 [mask-image:linear-gradient(to_bottom,black_40%,transparent)] dark:bg-card/40\">\n      {GHOST_WIDTHS.slice(0, rows).map(([first, second], index) => (\n        <div key={index} className={cn(ROW_CLASS, index > 0 && \"border-t border-dashed\")}>\n          <div className=\"flex min-w-0 flex-col gap-2\">\n            <span className={cn(BAR_CLASS, first)} />\n            <span className={cn(BAR_CLASS, second, \"opacity-60\")} />\n          </div>\n          <span className={cn(BAR_CLASS, \"w-16\")} />\n          <span className={cn(BAR_CLASS, \"hidden w-12 justify-self-end @2xl:block\")} />\n        </div>\n      ))}\n    </div>\n  )\n}\n\nfunction SampleList({ rows }: { rows: readonly EmptyStateSampleRow[] }) {\n  const reduceMotion = useReducedMotion()\n  return (\n    <motion.ul\n      aria-label=\"Sample projects\"\n      initial={reduceMotion ? false : { opacity: 0 }}\n      animate={{ opacity: 1 }}\n      transition={SPRING_DEFAULT}\n      className=\"flex flex-col divide-y rounded-2xl border bg-background shadow-[0_1px_2px_color-mix(in_oklab,var(--foreground)_6%,transparent),0_16px_32px_-16px_color-mix(in_oklab,var(--foreground)_16%,transparent)] dark:bg-card dark:shadow-none\"\n    >\n      {rows.map((row) => (\n        <li key={row.id} className={ROW_CLASS}>\n          <div className=\"min-w-0\">\n            <p className=\"text-[15px] leading-normal text-pretty\">{row.title}</p>\n            <p className=\"text-[13px] leading-relaxed text-pretty text-muted-foreground\">{row.detail}</p>\n          </div>\n          <Status state=\"custom\" tone={row.tone ?? \"neutral\"} className=\"text-[13px]\">\n            {row.status}\n          </Status>\n          <p className=\"hidden text-right text-[13px] text-muted-foreground @2xl:block\">{row.when}</p>\n        </li>\n      ))}\n    </motion.ul>\n  )\n}\n\nfunction useSamplePhase(onUseSample: EmptyStateSampleProps[\"onUseSample\"], onClearSample: EmptyStateSampleProps[\"onClearSample\"]) {\n  const [phase, setPhase] = useState<SamplePhase>(\"ghost\")\n  const load = async () => {\n    setPhase(\"loading\")\n    try {\n      await onUseSample?.()\n      setPhase(\"loaded\")\n    } catch {\n      // The ghost stays, so a failed load leaves the screen exactly as it was.\n      setPhase(\"failed\")\n    }\n  }\n  const clear = () => {\n    setPhase(\"ghost\")\n    onClearSample?.()\n  }\n  return { phase, load, clear }\n}\n\n/** Each of these buttons replaces the other, and focus must not fall back to the top of the page with it. */\nfunction useFocusAcrossPhases(phase: SamplePhase) {\n  const sampleRef = useRef<HTMLButtonElement>(null)\n  const clearRef = useRef<HTMLButtonElement>(null)\n  const previousRef = useRef(phase)\n  useEffect(() => {\n    const previous = previousRef.current\n    previousRef.current = phase\n    if (phase === \"loaded\") clearRef.current?.focus()\n    if (phase === \"ghost\" && previous === \"loaded\") sampleRef.current?.focus()\n  }, [phase])\n  return { sampleRef, clearRef }\n}\n\ninterface SampleActionsProps {\n  phase: SamplePhase\n  sampleLabel: string\n  actionLabel: string\n  onAction?: () => void\n  onLoad: () => void\n  onClear: () => void\n}\n\nfunction SampleActions({ phase, sampleLabel, actionLabel, onAction, onLoad, onClear }: SampleActionsProps) {\n  const { sampleRef, clearRef } = useFocusAcrossPhases(phase)\n  const loading = phase === \"loading\"\n  if (phase === \"loaded\") {\n    return (\n      <div className=\"flex flex-wrap items-center gap-3\">\n        <Button variant=\"mise\" size=\"lg\" onClick={onAction}>{actionLabel}</Button>\n        <Button ref={clearRef} variant=\"outline\" size=\"lg\" onClick={onClear}>Clear sample data</Button>\n      </div>\n    )\n  }\n  return (\n    <div className=\"flex flex-wrap items-center gap-3\">\n      {/* Not disabled: a disabled button drops keyboard focus, and it would be lost for the whole load. */}\n      <Button ref={sampleRef} variant=\"mise\" size=\"lg\" effect={loading ? \"shimmer\" : undefined} aria-disabled={loading || undefined} onClick={loading ? undefined : onLoad}>\n        {phase === \"failed\" ? \"Try again\" : loading ? \"Loading sample\" : sampleLabel}\n      </Button>\n      <Button variant=\"outline\" size=\"lg\" onClick={onAction}>{actionLabel}</Button>\n    </div>\n  )\n}\n\nfunction EmptyStateSample({\n  title = \"This is where your projects will live.\",\n  description = \"See it filled in first, then clear it when you are ready.\",\n  actionLabel = \"New project\",\n  onAction,\n  sampleRows = DEFAULT_ROWS,\n  sampleLabel = \"Use sample data\",\n  onUseSample,\n  onClearSample,\n  className,\n  ...props\n}: EmptyStateSampleProps) {\n  const { phase, load, clear } = useSamplePhase(onUseSample, onClearSample)\n  const loaded = phase === \"loaded\"\n\n  return (\n    <section data-slot=\"empty-state\" data-variant=\"sample\" data-phase={phase} className={cn(\"@container w-full bg-muted dark:bg-background\", className)} {...props}>\n      <div className=\"px-4 py-12 @2xl:px-8 @2xl:py-20\">\n        <div className=\"mx-auto flex max-w-3xl flex-col gap-8\">\n          <div className=\"flex flex-col gap-6\">\n            <h2 className=\"text-display text-3xl text-balance @2xl:text-4xl\">\n              {loaded ? \"Sample data is loaded.\" : title} <span className=\"text-muted-foreground\">{loaded ? \"Everything here is made up, and nothing is saved.\" : description}</span>\n            </h2>\n            <SampleActions phase={phase} sampleLabel={sampleLabel} actionLabel={actionLabel} onAction={onAction} onLoad={load} onClear={clear} />\n            {phase === \"failed\" ? <p role=\"alert\" className=\"text-[13px] text-destructive\">The sample did not load. Nothing on this screen changed.</p> : null}\n          </div>\n          {loaded ? <SampleList rows={sampleRows} /> : <SampleGhost rows={sampleRows.length || GHOST_WIDTHS.length} />}\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { EmptyStateSample, type EmptyStateSampleProps, type EmptyStateSampleRow }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "blocks"
  ],
  "type": "registry:block"
}