{
  "schemaVersion": 1,
  "target": "react",
  "name": "diff-table",
  "version": "0.1.0",
  "category": "ai-elements",
  "title": "Diff Table",
  "description": "An agent's proposed edits to table rows, with added, removed and changed cells, an include toggle on each change, and an Apply footer that folds the accepted changes into the table.",
  "tags": [
    "ai",
    "agent",
    "diff",
    "table",
    "review",
    "records",
    "approval",
    "changes"
  ],
  "requires": {
    "projectTypes": [
      "next",
      "vite-react"
    ],
    "styling": "tailwind-v4"
  },
  "npmDependencies": {
    "@base-ui/react": "^1.9.0"
  },
  "registryDependencies": [
    {
      "name": "checkbox",
      "version": "0.1.1"
    }
  ],
  "docsPath": "/components/diff-table",
  "props": [
    {
      "name": "columns",
      "type": "{ key, header, width?, align?, mono? }[]",
      "description": "Columns. width is a grid track such as \"minmax(0,2fr)\" or \"7rem\"."
    },
    {
      "name": "rows",
      "type": "{ id, values, change? }[]",
      "description": "Rows in order. change is { type: \"added\" }, { type: \"removed\" } or { type: \"changed\", values }; rows without one are context."
    },
    {
      "name": "title / description",
      "type": "ReactNode",
      "default": "\"Proposed changes\"",
      "description": "Header text."
    },
    {
      "name": "rowLabel",
      "type": "(row) => string",
      "default": "the first column's text",
      "description": "Names a row in its toggle's label."
    },
    {
      "name": "selected / defaultSelected / onSelectedChange",
      "type": "string[]",
      "default": "all changes",
      "description": "Ids of the included changes."
    },
    {
      "name": "phase / defaultPhase / onPhaseChange",
      "type": "\"review\" | \"applied\" | \"discarded\"",
      "default": "\"review\"",
      "description": "Review shows the diff; applied and discarded show the folded result."
    },
    {
      "name": "onApply",
      "type": "(ids) => void",
      "description": "Called with the included change ids when Apply is pressed."
    },
    {
      "name": "onDiscard",
      "type": "() => void",
      "description": "Called when Discard is pressed."
    },
    {
      "name": "onUndo",
      "type": "() => void",
      "description": "Shows an Undo button after applying or discarding, which returns to review."
    }
  ],
  "accessibility": [
    "The grid uses role=\"table\", \"row\", \"columnheader\" and \"cell\". Each change has a hidden sign label (Added, Removed, Changed), and changed cells read as \"Was\" and \"Now\".",
    "Each change has a Base UI checkbox labelled \"Include changed row Halcyon Dental\" and so on; pressing anywhere on the row toggles it too.",
    "Apply and Discard are buttons; the result (\"Applied 3 changes.\") is announced through a polite live region. Folded rows are aria-hidden.",
    "Narrow screens scroll the table sideways inside the card instead of widening the page.",
    "Under reduced motion the folds, tints and footer swap are instant."
  ],
  "states": [
    "review",
    "partly-selected",
    "applied",
    "discarded"
  ],
  "files": [
    {
      "path": "agent/diff-table.tsx",
      "content": "\"use client\";\n\nimport { type ComponentProps, type CSSProperties, type ReactNode, useEffect, useId, useState } from \"react\";\nimport { Checkbox } from \"../ui/checkbox\";\n\n/*\n * Diff table: an agent's proposed edits to table rows, reviewed in place. Added rows are tinted\n * green, removed rows red and struck through, and changed cells show the old value struck above\n * the new one. Every changed row has its own include toggle.\n *\n * Applying folds the review into the table: accepted old values and accepted removals collapse\n * away, rejected additions and rejected new values collapse away, and the tints fade, so what is\n * left is simply the resulting table. Collapses use grid rows (0fr to 1fr), never measured heights.\n * Under reduced motion the table switches to the result at once.\n */\n\nexport interface DiffTableColumn {\n  key: string;\n  header: ReactNode;\n  /** A grid track, for example \"minmax(0,2fr)\" or \"7rem\". Defaults to \"minmax(0,1fr)\". */\n  width?: string;\n  align?: \"start\" | \"end\";\n  /** Mono and tabular figures, for ids, amounts and dates. */\n  mono?: boolean;\n}\n\nexport type DiffTableChange = { type: \"added\" } | { type: \"removed\" } | { type: \"changed\"; values: Record<string, ReactNode> };\n\nexport interface DiffTableRow {\n  id: string;\n  /** The row as it is today (for added rows, the proposed row). */\n  values: Record<string, ReactNode>;\n  /** The proposed change. Rows without one are shown as context. */\n  change?: DiffTableChange;\n}\n\nexport type DiffTablePhase = \"review\" | \"applied\" | \"discarded\";\n\nexport interface DiffTableProps extends Omit<ComponentProps<\"section\">, \"title\"> {\n  columns: DiffTableColumn[];\n  rows: DiffTableRow[];\n  title?: ReactNode;\n  description?: ReactNode;\n  /** Names a row for its toggle's label. Defaults to the first column's text. */\n  rowLabel?: (row: DiffTableRow) => string;\n  /** Ids of changed rows that start included. Defaults to all of them. */\n  defaultSelected?: string[];\n  selected?: string[];\n  onSelectedChange?: (ids: string[]) => void;\n  phase?: DiffTablePhase;\n  defaultPhase?: DiffTablePhase;\n  onPhaseChange?: (phase: DiffTablePhase) => void;\n  /** Called with the included change ids when Apply is pressed. */\n  onApply?: (ids: string[]) => void;\n  /** Called when Discard is pressed. */\n  onDiscard?: () => void;\n  /** Shows an Undo button after applying or discarding, which returns to review. */\n  onUndo?: () => void;\n}\n\nfunction cx(...classes: (string | false | null | undefined)[]) {\n  return classes.filter(Boolean).join(\" \");\n}\n\nconst ease = \"ease-[cubic-bezier(0.23,1,0.32,1)]\";\n\n/** A grid-rows disclosure: 1fr when shown, 0fr when folded. */\nfunction Fold({ open, delay = 0, className, children }: { open: boolean; delay?: number; className?: string; children: ReactNode }) {\n  return (\n    <div\n      role=\"presentation\"\n      aria-hidden={!open || undefined}\n      className={cx(\"grid grid-cols-[minmax(0,1fr)] transition-[grid-template-rows,opacity] duration-[260ms] motion-reduce:transition-none\", ease, open ? \"grid-rows-[1fr] opacity-100\" : \"grid-rows-[0fr] opacity-0\", className)}\n      style={{ transitionDelay: `${delay}ms` }}\n    >\n      <div role=\"presentation\" className=\"min-h-0 overflow-hidden\">\n        {children}\n      </div>\n    </div>\n  );\n}\n\nconst signs = {\n  added: { char: \"+\", label: \"Added\", tone: \"text-emerald-600 dark:text-emerald-400\" },\n  removed: { char: \"−\", label: \"Removed\", tone: \"text-red-600 dark:text-red-400\" },\n  changed: { char: \"~\", label: \"Changed\", tone: \"text-amber-600 dark:text-amber-400\" },\n} as const;\n\nfunction textOf(node: ReactNode): string {\n  if (typeof node === \"string\" || typeof node === \"number\") return String(node);\n  return \"\";\n}\n\n/** An agent's proposed edits to table rows, with a toggle per change and an Apply footer. */\nexport function DiffTable({\n  columns,\n  rows,\n  title = \"Proposed changes\",\n  description,\n  rowLabel,\n  defaultSelected,\n  selected: selectedProp,\n  onSelectedChange,\n  phase: phaseProp,\n  defaultPhase = \"review\",\n  onPhaseChange,\n  onApply,\n  onDiscard,\n  onUndo,\n  className,\n  ...props\n}: DiffTableProps) {\n  const changeIds = rows.filter((row) => row.change).map((row) => row.id);\n  const [selectedState, setSelectedState] = useState<string[]>(() => defaultSelected ?? changeIds);\n  const selected = selectedProp ?? selectedState;\n  const [phaseState, setPhaseState] = useState<DiffTablePhase>(defaultPhase);\n  const phase = phaseProp ?? phaseState;\n  const reviewing = phase === \"review\";\n  const headingId = useId();\n\n  // The count that Apply used, so the footer keeps saying \"Applied 3\" after the fold.\n  const [resultCount, setResultCount] = useState(0);\n  const [announcement, setAnnouncement] = useState(\"\");\n\n  function setSelected(next: string[]) {\n    if (selectedProp === undefined) setSelectedState(next);\n    onSelectedChange?.(next);\n  }\n  function setPhase(next: DiffTablePhase) {\n    if (phaseProp === undefined) setPhaseState(next);\n    onPhaseChange?.(next);\n  }\n  function toggle(id: string, include: boolean) {\n    if (!reviewing) return;\n    setSelected(include ? [...selected.filter((s) => s !== id), id] : selected.filter((s) => s !== id));\n  }\n\n  const included = changeIds.filter((id) => selected.includes(id));\n  const counts = { added: 0, removed: 0, changed: 0 };\n  for (const row of rows) if (row.change) counts[row.change.type]++;\n\n  useEffect(() => {\n    if (phase === \"review\") setAnnouncement(\"\");\n  }, [phase]);\n\n  const template = [\"1.75rem\", ...columns.map((c) => c.width ?? \"minmax(0,1fr)\"), \"2.75rem\"].join(\" \");\n  const gridStyle: CSSProperties = { gridTemplateColumns: template };\n  const labelFor = (row: DiffTableRow) => rowLabel?.(row) ?? (textOf(row.values[columns[0]?.key ?? \"\"]) || row.id);\n\n  return (\n    <section\n      aria-labelledby={headingId}\n      data-phase={phase}\n      className={cx(\n        \"w-full overflow-hidden rounded-xl border border-zinc-950/10 bg-white text-left text-zinc-950 shadow-[0_1px_2px_rgb(0_0_0/0.04)]\",\n        \"dark:border-white/10 dark:bg-black dark:text-white dark:shadow-[inset_0_1px_0_rgb(255_255_255/0.06)]\",\n        className,\n      )}\n      {...props}\n    >\n      <header className=\"flex flex-wrap items-start justify-between gap-x-6 gap-y-2 px-4 pt-4 pb-3\">\n        <div className=\"min-w-0\">\n          <h3 id={headingId} className=\"text-sm font-semibold\">\n            {title}\n          </h3>\n          {description ? <p className=\"mt-0.5 text-sm text-zinc-600 dark:text-zinc-400\">{description}</p> : null}\n        </div>\n        <p className=\"flex items-center gap-3 font-mono text-xs tabular-nums\">\n          <span className={signs.added.tone}>\n            +{counts.added}\n            <span className=\"sr-only\"> added,</span>\n          </span>\n          <span className={signs.removed.tone}>\n            {\"−\"}\n            {counts.removed}\n            <span className=\"sr-only\"> removed,</span>\n          </span>\n          <span className={signs.changed.tone}>\n            ~{counts.changed}\n            <span className=\"sr-only\"> changed</span>\n          </span>\n        </p>\n      </header>\n\n      {/* inline-size containment keeps the table's minimum width from widening the page; it scrolls instead. */}\n      <div className=\"overflow-x-auto [contain:inline-size]\">\n        <div role=\"table\" aria-labelledby={headingId} className=\"relative min-w-[34rem] text-sm\">\n          <div role=\"rowgroup\">\n            <div role=\"row\" className=\"grid border-y border-zinc-950/[0.07] dark:border-white/[0.08]\" style={gridStyle}>\n              <span role=\"columnheader\" className=\"sr-only\">\n                Change\n              </span>\n              {columns.map((column, i) => (\n                <span\n                  key={column.key}\n                  role=\"columnheader\"\n                  className={cx(\"truncate py-2 pr-3 text-xs font-medium text-zinc-500\", column.align === \"end\" && \"text-right\", i === 0 && \"col-start-2\")}\n                >\n                  {column.header}\n                </span>\n              ))}\n              <span role=\"columnheader\" className=\"sr-only\">\n                Include\n              </span>\n            </div>\n          </div>\n          <div role=\"rowgroup\">\n            {rows.map((row, index) => (\n              <Row\n                key={row.id}\n                row={row}\n                columns={columns}\n                gridStyle={gridStyle}\n                phase={phase}\n                included={included.includes(row.id)}\n                label={labelFor(row)}\n                last={index === rows.length - 1}\n                onToggle={(include) => toggle(row.id, include)}\n              />\n            ))}\n          </div>\n        </div>\n      </div>\n\n      <footer className=\"relative border-t border-zinc-950/[0.07] dark:border-white/[0.08]\">\n        <span role=\"status\" className=\"sr-only\">\n          {announcement}\n        </span>\n        <div\n          inert={!reviewing || undefined}\n          className={cx(\n            \"flex flex-wrap items-center justify-between gap-3 px-4 py-3 transition-[opacity,translate] duration-200 motion-reduce:transition-none\",\n            ease,\n            reviewing ? \"opacity-100\" : \"pointer-events-none translate-y-1 opacity-0\",\n          )}\n        >\n          <p className=\"text-xs text-zinc-500 tabular-nums\">\n            {included.length} of {changeIds.length} changes selected\n          </p>\n          <div className=\"ml-auto flex items-center gap-2\">\n            <button\n              type=\"button\"\n              onClick={() => {\n                setResultCount(changeIds.length);\n                setAnnouncement(`Discarded ${changeIds.length} proposed changes.`);\n                setPhase(\"discarded\");\n                onDiscard?.();\n              }}\n              className={cx(\n                \"inline-flex h-8 items-center rounded-lg px-3 text-sm font-medium text-zinc-600 select-none dark:text-zinc-400\",\n                \"transition-[background-color,color,scale] duration-150 ease-out hover:bg-zinc-950/[0.04] hover:text-zinc-950 motion-safe:active:scale-[0.97] motion-reduce:transition-none\",\n                \"dark:hover:bg-white/[0.06] dark:hover:text-white\",\n                \"focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-sky-500\",\n              )}\n            >\n              Discard\n            </button>\n            <button\n              type=\"button\"\n              disabled={included.length === 0}\n              onClick={() => {\n                setResultCount(included.length);\n                setAnnouncement(`Applied ${included.length} ${included.length === 1 ? \"change\" : \"changes\"}.`);\n                setPhase(\"applied\");\n                onApply?.(included);\n              }}\n              className={cx(\n                \"inline-flex h-8 items-center gap-2 rounded-lg px-3 text-sm font-medium whitespace-nowrap select-none\",\n                \"bg-zinc-950 text-white shadow-[inset_0_1px_0_rgb(255_255_255/0.12),0_1px_2px_rgb(0_0_0/0.2)] hover:bg-zinc-800\",\n                \"dark:bg-white dark:text-black dark:shadow-[inset_0_-1px_0_rgb(0_0_0/0.12)] dark:hover:bg-zinc-200\",\n                \"transition-[background-color,scale,opacity] duration-150 ease-out motion-safe:active:scale-[0.97] motion-reduce:transition-none\",\n                \"disabled:pointer-events-none disabled:opacity-40\",\n                \"focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-sky-500\",\n              )}\n            >\n              Apply <span className=\"tabular-nums\">{included.length}</span> {included.length === 1 ? \"change\" : \"changes\"}\n            </button>\n          </div>\n        </div>\n\n        <div\n          inert={reviewing || undefined}\n          className={cx(\n            \"absolute inset-0 flex items-center justify-between gap-3 px-4 transition-[opacity,translate] duration-200 motion-reduce:transition-none\",\n            ease,\n            reviewing ? \"pointer-events-none translate-y-1 opacity-0\" : \"opacity-100 delay-200\",\n          )}\n        >\n          <p className=\"flex items-center gap-2 text-sm\">\n            <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className={cx(\"size-4\", phase === \"applied\" ? \"text-emerald-600 dark:text-emerald-400\" : \"text-zinc-500\")}>\n              {phase === \"discarded\" ? <path d=\"m4.5 4.5 7 7m0-7-7 7\" /> : <path d=\"m3.5 8.5 3 3 6-7\" />}\n            </svg>\n            <span className=\"text-zinc-600 dark:text-zinc-400\">\n              {phase === \"discarded\" ? \"Discarded\" : \"Applied\"} <span className=\"tabular-nums\">{resultCount}</span> {resultCount === 1 ? \"change\" : \"changes\"}\n            </span>\n          </p>\n          {onUndo ? (\n            <button\n              type=\"button\"\n              onClick={() => {\n                setPhase(\"review\");\n                onUndo();\n              }}\n              className={cx(\n                \"inline-flex h-8 items-center rounded-lg border border-zinc-950/12 bg-white px-3 text-sm font-medium select-none\",\n                \"transition-[background-color,border-color,scale] duration-150 ease-out hover:border-zinc-950/20 hover:bg-zinc-950/[0.03] motion-safe:active:scale-[0.97] motion-reduce:transition-none\",\n                \"dark:border-white/15 dark:bg-black dark:hover:border-white/25 dark:hover:bg-white/[0.06]\",\n                \"focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-sky-500\",\n              )}\n            >\n              Undo\n            </button>\n          ) : null}\n        </div>\n      </footer>\n    </section>\n  );\n}\n\nfunction Row({\n  row,\n  columns,\n  gridStyle,\n  phase,\n  included,\n  label,\n  last,\n  onToggle,\n}: {\n  row: DiffTableRow;\n  columns: DiffTableColumn[];\n  gridStyle: CSSProperties;\n  phase: DiffTablePhase;\n  included: boolean;\n  label: string;\n  last: boolean;\n  onToggle: (include: boolean) => void;\n}) {\n  const type = row.change?.type;\n  const reviewing = phase === \"review\";\n  // What the row resolves to: did this change happen?\n  const accepted = phase === \"applied\" && included;\n  const settled = !reviewing;\n  // The row disappears when a removal is accepted or an addition is not.\n  const gone = settled && ((type === \"removed\" && accepted) || (type === \"added\" && !accepted));\n  const dimmed = reviewing && type != null && !included;\n\n  const tint =\n    !settled && type === \"added\"\n      ? \"bg-emerald-500/[0.07]\"\n      : !settled && type === \"removed\"\n        ? \"bg-red-500/[0.06]\"\n        : \"bg-transparent\";\n\n  return (\n    <Fold open={!gone} delay={gone ? 120 : 0}>\n      <div\n        role=\"row\"\n        aria-hidden={gone || undefined}\n        onClick={(event) => {\n          // The whole row toggles on press; the checkbox stays the keyboard path.\n          if (!type || !reviewing) return;\n          if ((event.target as HTMLElement).closest(\"button,a,input,label\")) return;\n          onToggle(!included);\n        }}\n        className={cx(\n          \"grid items-center\",\n          !last && \"border-b border-zinc-950/[0.07] dark:border-white/[0.08]\",\n          \"transition-[background-color,opacity,filter] duration-300 motion-reduce:transition-none\",\n          ease,\n          tint,\n          type && reviewing && \"cursor-pointer hover:bg-zinc-950/[0.03] dark:hover:bg-white/[0.04]\",\n          type === \"added\" && reviewing && \"hover:bg-emerald-500/[0.1] dark:hover:bg-emerald-500/[0.1]\",\n          type === \"removed\" && reviewing && \"hover:bg-red-500/[0.09] dark:hover:bg-red-500/[0.09]\",\n          dimmed && \"opacity-50 grayscale\",\n        )}\n        style={gridStyle}\n      >\n        <span role=\"cell\" className={cx(\"py-2.5 pl-4 font-mono text-xs leading-5 transition-opacity duration-200 motion-reduce:transition-none\", type && signs[type].tone, settled && \"opacity-0\")}>\n          {type ? (\n            <>\n              <span aria-hidden=\"true\">{signs[type].char}</span>\n              <span className=\"sr-only\">{signs[type].label}</span>\n            </>\n          ) : null}\n        </span>\n        {columns.map((column) => (\n          <Cell key={column.key} row={row} column={column} type={type} settled={settled} accepted={accepted} />\n        ))}\n        <span role=\"cell\" className=\"flex justify-center py-2.5\">\n          {type ? (\n            <span className={cx(\"transition-opacity duration-200 motion-reduce:transition-none\", settled && \"opacity-0\")}>\n              <Checkbox\n                checked={included}\n                disabled={!reviewing}\n                onCheckedChange={(checked) => onToggle(checked === true)}\n                aria-label={`Include ${signs[type].label.toLowerCase()} row ${label}`}\n              />\n            </span>\n          ) : null}\n        </span>\n      </div>\n    </Fold>\n  );\n}\n\nfunction Cell({\n  row,\n  column,\n  type,\n  settled,\n  accepted,\n}: {\n  row: DiffTableRow;\n  column: DiffTableColumn;\n  type: DiffTableChange[\"type\"] | undefined;\n  settled: boolean;\n  accepted: boolean;\n}) {\n  const before = row.values[column.key];\n  const proposed = row.change?.type === \"changed\" ? row.change.values : undefined;\n  const changed = proposed != null && column.key in proposed;\n  const after = changed ? proposed[column.key] : undefined;\n  const base = cx(\"min-w-0 py-2.5 pr-3 leading-5\", column.align === \"end\" && \"text-right\", column.mono && \"font-mono text-[13px] tabular-nums\");\n\n  if (!changed) {\n    const struck = type === \"removed\" && !settled;\n    return (\n      <span role=\"cell\" className={base}>\n        <span\n          className={cx(\n            \"block truncate decoration-red-500/60 transition-[color] duration-300 motion-reduce:transition-none\",\n            struck ? \"text-zinc-500 line-through\" : type === \"removed\" ? \"text-zinc-950 dark:text-white\" : \"text-zinc-800 dark:text-zinc-200\",\n          )}\n        >\n          {before}\n        </span>\n      </span>\n    );\n  }\n\n  // Changed: old value struck above the new one. Settling folds away whichever side lost.\n  const keepOld = settled && !accepted;\n  const keepNew = !settled || accepted;\n  return (\n    <span role=\"cell\" className={base}>\n      <Fold open={!settled || keepOld}>\n        <span\n          className={cx(\n            \"block truncate transition-[color] duration-300 motion-reduce:transition-none\",\n            settled ? \"text-zinc-800 dark:text-zinc-200\" : \"text-xs text-zinc-500 line-through decoration-red-500/60\",\n          )}\n        >\n          <span className=\"sr-only\">{settled ? \"\" : \"Was \"}</span>\n          {before}\n        </span>\n      </Fold>\n      <Fold open={keepNew}>\n        <span className={cx(\"block truncate font-medium transition-[color] duration-300 motion-reduce:transition-none\", settled ? \"text-zinc-800 dark:text-zinc-200 font-normal\" : \"text-zinc-950 dark:text-white\")}>\n          <span className=\"sr-only\">{settled ? \"\" : \"Now \"}</span>\n          {after}\n        </span>\n      </Fold>\n    </span>\n  );\n}\n"
    }
  ],
  "example": {
    "content": "\"use client\";\n\nimport { DiffTable, type DiffTableColumn, type DiffTableRow } from \"@/components/shaken/agent/diff-table\";\n\nconst columns: DiffTableColumn[] = [\n  { key: \"account\", header: \"Account\", width: \"minmax(0,1.6fr)\" },\n  { key: \"owner\", header: \"Owner\", width: \"minmax(0,1.2fr)\" },\n  { key: \"plan\", header: \"Plan\", width: \"minmax(0,0.9fr)\" },\n  { key: \"arr\", header: \"ARR\", width: \"6.5rem\", align: \"end\", mono: true },\n];\n\nconst rows: DiffTableRow[] = [\n  { id: \"northwind\", values: { account: \"Northwind Freight\", owner: \"Priya Raman\", plan: \"Scale\", arr: \"$148,000\" } },\n  {\n    id: \"halcyon\",\n    values: { account: \"Halcyon Dental\", owner: \"Marcus Oyelaran\", plan: \"Team\", arr: \"$18,400\" },\n    change: { type: \"changed\", values: { owner: \"Priya Raman\" } },\n  },\n  {\n    id: \"bramble\",\n    values: { account: \"Bramble & Rye\", owner: \"Ines Carvalho\", plan: \"Team\", arr: \"$22,900\" },\n    change: { type: \"changed\", values: { plan: \"Scale\", arr: \"$61,200\" } },\n  },\n  { id: \"bramble-dup\", values: { account: \"Bramble and Rye\", owner: \"Ines Carvalho\", plan: \"Team\", arr: \"$22,900\" }, change: { type: \"removed\" } },\n  { id: \"kestrel\", values: { account: \"Kestrel Robotics\", owner: \"Tomas Lindqvist\", plan: \"Enterprise\", arr: \"$310,000\" } },\n  { id: \"osprey\", values: { account: \"Osprey Health\", owner: \"Marcus Oyelaran\", plan: \"Team\", arr: \"$27,500\" }, change: { type: \"added\" } },\n];\n\nexport default function DiffTableExample() {\n  return (\n    <DiffTable\n      className=\"max-w-2xl\"\n      title=\"Proposed changes to Accounts\"\n      description=\"From the renewal cleanup: reassign one owner, upgrade Bramble & Rye, merge a duplicate, add a signed deal.\"\n      columns={columns}\n      rows={rows}\n      onUndo={() => {}}\n    />\n  );\n}\n"
  }
}
