{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notification-preferences-panel",
  "title": "Notification Preferences Panel",
  "description": "A notification settings screen: a matrix of events by channel with select-all columns, security alerts that can't be turned off, email frequency from instant to weekly, quiet hours with days, pause all with a banner, a test notification that slides in, and a save bar.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/notification-preferences-panel/notification-preferences-panel.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\ntype Channel = \"app\" | \"email\" | \"push\";\ntype Digest = \"instant\" | \"hourly\" | \"daily\" | \"weekly\";\ntype Matrix = Record<string, Record<Channel, boolean>>;\nexport interface NotificationPrefs {\n  matrix: Matrix;\n  digest: Digest;\n  quiet: { on: boolean; from: string; to: string; days: number[] };\n}\n\nexport interface NotificationPreferencesPanelProps {\n  defaultValue?: NotificationPrefs;\n  onSave?: (prefs: NotificationPrefs) => Promise<void> | void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.36)\", card: \"#121212\", menu: \"#1A1A1A\", border: \"rgba(255,255,255,0.09)\", row: \"rgba(255,255,255,0.025)\", input: \"#0D0D0D\", track: \"rgba(255,255,255,0.1)\", on: \"#F5F4F1\", onText: \"#0A0A0A\", accent: \"#60A5FA\", green: \"#4ADE80\", amber: \"#FBBF24\", ring: \"rgba(245,244,241,0.6)\" },\n  light: { bg: \"#FAFAF8\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.42)\", card: \"#FFFFFF\", menu: \"#FFFFFF\", border: \"rgba(10,10,10,0.1)\", row: \"rgba(10,10,10,0.02)\", input: \"#FAFAF8\", track: \"rgba(10,10,10,0.12)\", on: \"#0A0A0A\", onText: \"#FAFAF8\", accent: \"#2563EB\", green: \"#15803D\", amber: \"#B45309\", ring: \"rgba(10,10,10,0.5)\" },\n};\nconst CHANNELS: { id: Channel; label: string }[] = [\n  { id: \"app\", label: \"In-app\" },\n  { id: \"email\", label: \"Email\" },\n  { id: \"push\", label: \"Push\" },\n];\nconst GROUPS: { title: string; events: { id: string; label: string; hint: string; locked?: boolean }[] }[] = [\n  {\n    title: \"Activity\",\n    events: [\n      { id: \"mentions\", label: \"Mentions\", hint: \"Someone @mentions you\" },\n      { id: \"comments\", label: \"Comments\", hint: \"Replies on things you follow\" },\n      { id: \"assigned\", label: \"Assigned to you\", hint: \"Tasks and reviews\" },\n    ],\n  },\n  {\n    title: \"Projects\",\n    events: [\n      { id: \"status\", label: \"Status changes\", hint: \"Projects you're on move stage\" },\n      { id: \"due\", label: \"Due soon\", hint: \"24 hours before a deadline\" },\n    ],\n  },\n  {\n    title: \"Account\",\n    events: [\n      { id: \"security\", label: \"Security alerts\", hint: \"New sign-ins and password changes\", locked: true },\n      { id: \"billing\", label: \"Billing\", hint: \"Invoices and failed payments\" },\n    ],\n  },\n];\nconst ALL_EVENTS = GROUPS.flatMap((g) => g.events);\nconst row = (app: boolean, email: boolean, push: boolean) => ({ app, email, push });\nconst DEFAULT: NotificationPrefs = {\n  matrix: { mentions: row(true, true, true), comments: row(true, false, false), assigned: row(true, true, true), status: row(true, false, false), due: row(true, true, false), security: row(true, true, true), billing: row(false, true, false) },\n  digest: \"daily\",\n  quiet: { on: true, from: \"20:00\", to: \"08:00\", days: [5, 6] },\n};\nconst DAYS = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\nconst DAY_NAMES = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\nconst TIMES = Array.from({ length: 24 }, (_, h) => `${String(h).padStart(2, \"0\")}:00`);\nconst PAUSES = [\n  [\"1 hour\", \"until 11:42\"],\n  [\"Until tomorrow\", \"until 09:00 tomorrow\"],\n  [\"1 week\", \"until Nov 19\"],\n] as const;\n\nexport function NotificationPreferencesPanel({ defaultValue = DEFAULT, onSave, theme = \"dark\", className }: NotificationPreferencesPanelProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [saved, setSaved] = React.useState(defaultValue);\n  const [v, setV] = React.useState(defaultValue);\n  const [paused, setPaused] = React.useState<string | null>(null);\n  const [pauseOpen, setPauseOpen] = React.useState(false);\n  const [test, setTest] = React.useState(0);\n  const [status, setStatus] = React.useState<\"idle\" | \"saving\" | \"saved\">(\"idle\");\n  const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n  React.useEffect(() => {\n    if (!test) return;\n    const t = setTimeout(() => setTest(0), 3200);\n    return () => clearTimeout(t);\n  }, [test]);\n  React.useEffect(() => {\n    if (status !== \"saved\") return;\n    const t = setTimeout(() => setStatus(\"idle\"), 1800);\n    return () => clearTimeout(t);\n  }, [status]);\n  React.useEffect(\n    () => () => {\n      if (timer.current) clearTimeout(timer.current);\n    },\n    [],\n  );\n\n  const dirty = JSON.stringify(v) !== JSON.stringify(saved);\n  const set = (id: string, ch: Channel, on: boolean) => setV((s) => ({ ...s, matrix: { ...s.matrix, [id]: { ...s.matrix[id], [ch]: on } } }));\n  const colState = (ch: Channel) => {\n    const editable = ALL_EVENTS.filter((e) => !e.locked);\n    const n = editable.filter((e) => v.matrix[e.id][ch]).length;\n    return n === 0 ? \"none\" : n === editable.length ? \"all\" : \"some\";\n  };\n  const setCol = (ch: Channel, on: boolean) => setV((s) => ({ ...s, matrix: Object.fromEntries(Object.entries(s.matrix).map(([id, r]) => [id, ALL_EVENTS.find((e) => e.id === id)?.locked ? r : { ...r, [ch]: on }])) }));\n  const save = () => {\n    if (!dirty || status === \"saving\") return;\n    setStatus(\"saving\");\n    const snap = v;\n    const done = () => {\n      setSaved(snap);\n      setStatus(\"saved\");\n    };\n    const r = onSave?.(snap);\n    if (r instanceof Promise) r.then(done, () => setStatus(\"idle\"));\n    else timer.current = setTimeout(done, reduce ? 0 : 700);\n  };\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.card } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const box = (on: boolean, mixed = false, disabled = false) => (\n    <span className=\"grid h-[18px] w-[18px] place-items-center rounded-[5px] border transition-colors\" style={{ borderColor: on || mixed ? (disabled ? p.faint : p.accent) : p.faint, background: on || mixed ? (disabled ? p.faint : p.accent) : \"transparent\" }} aria-hidden=\"true\">\n      {(on || mixed) && (\n        <svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#fff\" strokeWidth=\"3.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n          <path d={mixed ? \"M6 12h12\" : \"m5 12.5 4.5 4.5L19 7.5\"} />\n        </svg>\n      )}\n    </span>\n  );\n  const card = \"rounded-2xl border\";\n\n  return (\n    <section className={cn(\"@container relative w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-3xl px-4 py-10 @[640px]:px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-3\">\n          <div>\n            <h2 className=\"m-0 text-[22px] font-semibold tracking-[-0.01em]\">Notifications</h2>\n            <p className=\"m-0 mt-1 text-[13.5px]\" style={{ color: p.muted }}>\n              Choose what reaches you, and where.\n            </p>\n          </div>\n          <div className=\"flex gap-2\">\n            <button type=\"button\" onClick={() => setTest((n) => n + 1)} className={cn(\"h-9 cursor-pointer rounded-lg border bg-transparent px-3 text-[13px]\", focus)} style={{ borderColor: p.border, color: p.text, ...ring }}>\n              Send a test\n            </button>\n            <div className=\"relative\">\n              <button type=\"button\" onClick={() => (paused ? setPaused(null) : setPauseOpen((o) => !o))} aria-expanded={pauseOpen} aria-haspopup={paused ? undefined : \"menu\"} className={cn(\"h-9 cursor-pointer rounded-lg border-0 px-3 text-[13px] font-medium\", focus)} style={{ background: paused ? p.amber : p.on, color: paused ? \"#0A0A0A\" : p.onText, ...ring }}>\n                {paused ? \"Resume\" : \"Pause all\"}\n              </button>\n              <AnimatePresence>\n                {pauseOpen && (\n                  <motion.div key=\"m\" role=\"menu\" initial={reduce ? false : { opacity: 0, y: -4 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0, y: -4 }} className=\"absolute top-full right-0 z-20 mt-1.5 w-44 rounded-xl border p-1.5 shadow-xl\" style={{ background: p.menu, borderColor: p.border }}>\n                    {PAUSES.map(([label, until], i) => (\n                      <button\n                        key={label}\n                        type=\"button\"\n                        role=\"menuitem\"\n                        ref={i === 0 ? (el) => el?.focus({ preventScroll: true }) : undefined}\n                        onClick={() => {\n                          setPaused(until);\n                          setPauseOpen(false);\n                        }}\n                        onKeyDown={(e) => {\n                          if (e.key === \"Escape\") setPauseOpen(false);\n                          if (e.key === \"ArrowDown\" || e.key === \"ArrowUp\") {\n                            e.preventDefault();\n                            const sib = e.key === \"ArrowDown\" ? e.currentTarget.nextElementSibling : e.currentTarget.previousElementSibling;\n                            (sib as HTMLElement | null)?.focus();\n                          }\n                        }}\n                        className={cn(\"block w-full cursor-pointer rounded-lg border-0 bg-transparent px-2.5 py-1.5 text-left text-[13px] hover:bg-[var(--h)] focus-visible:bg-[var(--h)]\", \"outline-none\")}\n                        style={{ color: p.text, [\"--h\" as string]: p.row }}\n                      >\n                        {label}\n                      </button>\n                    ))}\n                  </motion.div>\n                )}\n              </AnimatePresence>\n            </div>\n          </div>\n        </div>\n\n        <AnimatePresence initial={false}>\n          {paused && (\n            <motion.div key=\"banner\" initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} className=\"overflow-hidden\" role=\"status\">\n              <div className=\"mt-4 flex items-center gap-2.5 rounded-xl border px-3.5 py-2.5 text-[13px]\" style={{ borderColor: `${p.amber}55`, background: `${p.amber}14`, color: p.amber }}>\n                <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <path d=\"M10 5v14M16 5v14\" />\n                </svg>\n                Notifications paused {paused}. Security alerts still come through.\n              </div>\n            </motion.div>\n          )}\n        </AnimatePresence>\n\n        {/* Matrix */}\n        <div className={cn(card, \"mt-6 overflow-hidden\")} style={{ borderColor: p.border, background: p.card, opacity: paused ? 0.6 : 1, transition: \"opacity 200ms\" }}>\n          <table className=\"w-full border-collapse text-[13px]\">\n            <thead>\n              <tr>\n                <th className=\"px-4 py-3 text-left text-[12px] font-medium\" style={{ color: p.faint }}>\n                  <span className=\"sr-only\">Event</span>\n                </th>\n                {CHANNELS.map((c) => {\n                  const st = colState(c.id);\n                  return (\n                    <th key={c.id} className=\"w-[72px] px-1 py-3 @[560px]:w-[96px]\">\n                      <label className=\"flex cursor-pointer flex-col items-center gap-1.5 text-[12px] font-medium has-[:focus-visible]:underline\" style={{ color: p.muted }}>\n                        {c.label}\n                        <input\n                          type=\"checkbox\"\n                          className=\"sr-only\"\n                          checked={st === \"all\"}\n                          ref={(el) => {\n                            if (el) el.indeterminate = st === \"some\";\n                          }}\n                          onChange={() => setCol(c.id, st !== \"all\")}\n                          aria-label={`All ${c.label}`}\n                        />\n                        {box(st === \"all\", st === \"some\")}\n                      </label>\n                    </th>\n                  );\n                })}\n              </tr>\n            </thead>\n            {GROUPS.map((g) => (\n              <tbody key={g.title}>\n                <tr>\n                  <td colSpan={4} className=\"border-t px-4 pt-4 pb-1.5 text-[11.5px] font-medium tracking-[0.04em] uppercase\" style={{ borderColor: p.border, color: p.faint }}>\n                    {g.title}\n                  </td>\n                </tr>\n                {g.events.map((e) => (\n                  <tr key={e.id} className=\"hover:bg-[var(--r)]\" style={{ [\"--r\" as string]: p.row }}>\n                    <td className=\"px-4 py-2.5\">\n                      <span className=\"flex items-center gap-1.5 font-medium\">\n                        {e.label}\n                        {e.locked && (\n                          <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke={p.faint} strokeWidth=\"2\" strokeLinecap=\"round\" aria-label=\"Always on\">\n                            <path d=\"M7 11V8a5 5 0 0 1 10 0v3M5 11h14v10H5z\" />\n                          </svg>\n                        )}\n                      </span>\n                      <span className=\"block text-[12px]\" style={{ color: p.faint }}>\n                        {e.hint}\n                      </span>\n                    </td>\n                    {CHANNELS.map((c) => {\n                      const on = v.matrix[e.id][c.id];\n                      return (\n                        <td key={c.id} className=\"px-1 py-2.5 text-center\">\n                          <label className={cn(\"inline-grid h-8 w-8 place-items-center rounded-lg has-[:focus-visible]:ring-2\", e.locked ? \"cursor-not-allowed\" : \"cursor-pointer\")} style={ring}>\n                            <input type=\"checkbox\" className=\"sr-only\" checked={on} disabled={e.locked} onChange={() => set(e.id, c.id, !on)} aria-label={`${e.label} by ${c.label}`} />\n                            <motion.span animate={{ scale: on && !reduce ? [1, 1.15, 1] : 1 }} transition={{ duration: 0.2 }}>\n                              {box(on, false, e.locked)}\n                            </motion.span>\n                          </label>\n                        </td>\n                      );\n                    })}\n                  </tr>\n                ))}\n              </tbody>\n            ))}\n          </table>\n        </div>\n\n        {/* Digest + quiet hours */}\n        <div className=\"mt-4 grid grid-cols-1 gap-4 @[640px]:grid-cols-2\">\n          <div className={cn(card, \"p-4\")} style={{ borderColor: p.border, background: p.card }}>\n            <p id={`${uid}-dg`} className=\"m-0 text-[13.5px] font-medium\">\n              Email frequency\n            </p>\n            <p className=\"m-0 mt-0.5 text-[12px]\" style={{ color: p.faint }}>\n              Bundle emails instead of one per event.\n            </p>\n            <div role=\"radiogroup\" aria-labelledby={`${uid}-dg`} className=\"mt-3 grid grid-cols-4 rounded-lg p-0.5\" style={{ background: p.row, border: `1px solid ${p.border}` }}>\n              {([\"instant\", \"hourly\", \"daily\", \"weekly\"] as const).map((d) => (\n                <button key={d} type=\"button\" role=\"radio\" aria-checked={v.digest === d} onClick={() => setV((s) => ({ ...s, digest: d }))} className={cn(\"relative h-7 cursor-pointer rounded-md border-0 bg-transparent text-[12px] capitalize\", \"outline-none focus-visible:ring-2\")} style={{ color: v.digest === d ? p.onText : p.muted, ...ring }}>\n                  {v.digest === d && <motion.span layoutId={`${uid}-dig`} className=\"absolute inset-0 rounded-md\" style={{ background: p.on }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 520, damping: 38 }} />}\n                  <span className=\"relative\">{d}</span>\n                </button>\n              ))}\n            </div>\n            <p className=\"m-0 mt-2 text-[12px]\" style={{ color: p.muted }}>\n              {v.digest === \"instant\" ? \"Emails go out as things happen.\" : v.digest === \"hourly\" ? \"At most one email an hour.\" : v.digest === \"daily\" ? \"One summary at 8:00 each morning.\" : \"One summary every Monday at 8:00.\"}\n            </p>\n          </div>\n\n          <div className={cn(card, \"p-4\")} style={{ borderColor: p.border, background: p.card }}>\n            <div className=\"flex items-start justify-between gap-3\">\n              <div>\n                <p className=\"m-0 text-[13.5px] font-medium\">Quiet hours</p>\n                <p className=\"m-0 mt-0.5 text-[12px]\" style={{ color: p.faint }}>\n                  No push notifications during these times.\n                </p>\n              </div>\n              <button type=\"button\" role=\"switch\" aria-checked={v.quiet.on} aria-label=\"Quiet hours\" onClick={() => setV((s) => ({ ...s, quiet: { ...s.quiet, on: !s.quiet.on } }))} className={cn(\"relative h-5 w-9 shrink-0 cursor-pointer rounded-full border-0 transition-colors\", focus)} style={{ background: v.quiet.on ? p.green : p.track, ...ring }}>\n                <motion.span className=\"absolute top-0.5 h-4 w-4 rounded-full bg-white shadow\" initial={false} animate={{ left: v.quiet.on ? 18 : 2 }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 600, damping: 34 }} />\n              </button>\n            </div>\n            <div className=\"mt-3 flex flex-wrap items-center gap-2 transition-opacity\" style={{ opacity: v.quiet.on ? 1 : 0.4 }}>\n              {([\"from\", \"to\"] as const).map((k, i) => (\n                <React.Fragment key={k}>\n                  {i === 1 && <span style={{ color: p.faint }}>–</span>}\n                  <select value={v.quiet[k]} disabled={!v.quiet.on} onChange={(e) => setV((s) => ({ ...s, quiet: { ...s.quiet, [k]: e.target.value } }))} aria-label={`Quiet hours ${k}`} className={cn(\"h-8 cursor-pointer rounded-lg border px-2 text-[12.5px] tabular-nums\", focus)} style={{ borderColor: p.border, background: p.input, color: p.text, ...ring }}>\n                    {TIMES.map((t) => (\n                      <option key={t}>{t}</option>\n                    ))}\n                  </select>\n                </React.Fragment>\n              ))}\n              <span className=\"text-[12px]\" style={{ color: p.faint }}>\n                and all day\n              </span>\n              <div className=\"flex gap-1\" role=\"group\" aria-label=\"Quiet days\">\n                {DAYS.map((d, i) => {\n                  const on = v.quiet.days.includes(i);\n                  return (\n                    <button key={i} type=\"button\" aria-pressed={on} aria-label={DAY_NAMES[i]} disabled={!v.quiet.on} onClick={() => setV((s) => ({ ...s, quiet: { ...s.quiet, days: on ? s.quiet.days.filter((x) => x !== i) : [...s.quiet.days, i] } }))} className={cn(\"grid h-7 w-7 cursor-pointer place-items-center rounded-full border text-[11.5px] disabled:cursor-not-allowed\", focus)} style={{ borderColor: on ? p.accent : p.border, background: on ? `${p.accent}22` : \"transparent\", color: on ? p.text : p.muted, ...ring }}>\n                      {d}\n                    </button>\n                  );\n                })}\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n\n      {/* Save bar */}\n      <AnimatePresence>\n        {(dirty || status !== \"idle\") && (\n          <motion.div key=\"bar\" initial={reduce ? false : { y: 20, opacity: 0 }} animate={{ y: 0, opacity: 1 }} exit={reduce ? undefined : { y: 20, opacity: 0 }} className=\"sticky bottom-4 z-10 mx-auto mb-4 max-w-3xl px-4 @[640px]:px-6\">\n            <div className=\"flex items-center justify-between gap-3 rounded-xl border px-4 py-3 shadow-[0_12px_32px_-12px_rgba(0,0,0,0.5)]\" style={{ background: p.menu, borderColor: p.border }}>\n              <p role=\"status\" className=\"m-0 text-[13px] font-medium\" style={{ color: !dirty ? p.green : p.text }}>\n                {!dirty ? \"✓ Preferences saved\" : \"Unsaved changes\"}\n              </p>\n              {dirty && (\n                <div className=\"flex gap-2\">\n                  <button type=\"button\" onClick={() => setV(saved)} className={cn(\"h-8 cursor-pointer rounded-lg border bg-transparent px-3 text-[12.5px]\", focus)} style={{ borderColor: p.border, color: p.text, ...ring }}>\n                    Discard\n                  </button>\n                  <button type=\"button\" onClick={save} className={cn(\"h-8 min-w-[64px] cursor-pointer rounded-lg border-0 px-3 text-[12.5px] font-medium\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                    {status === \"saving\" ? \"Saving…\" : \"Save\"}\n                  </button>\n                </div>\n              )}\n            </div>\n          </motion.div>\n        )}\n      </AnimatePresence>\n\n      {/* Test notification */}\n      <AnimatePresence>\n        {test > 0 && (\n          <motion.div key={test} role=\"status\" initial={reduce ? false : { opacity: 0, x: 40 }} animate={{ opacity: 1, x: 0 }} exit={reduce ? undefined : { opacity: 0, x: 40 }} transition={{ type: \"spring\", stiffness: 420, damping: 32 }} className=\"absolute top-4 right-4 z-30 flex w-[min(320px,calc(100%-32px))] gap-3 rounded-xl border p-3 shadow-[0_16px_40px_-12px_rgba(0,0,0,0.55)]\" style={{ background: p.menu, borderColor: p.border }}>\n            <span className=\"grid h-9 w-9 shrink-0 place-items-center rounded-lg text-[12px] font-bold text-white\" style={{ background: \"#6366F1\" }}>\n              N\n            </span>\n            <span className=\"min-w-0\">\n              <span className=\"block text-[13px] font-semibold\">\n                Mia mentioned you <span className=\"font-normal\" style={{ color: p.faint }}>· now</span>\n              </span>\n              <span className=\"block text-[12.5px]\" style={{ color: p.muted }}>\n                {paused ? \"This is how it looks. Real ones are paused.\" : \"“Can you check the Q4 numbers before the board call?”\"}\n              </span>\n            </span>\n          </motion.div>\n        )}\n      </AnimatePresence>\n    </section>\n  );\n}\n\nexport default NotificationPreferencesPanel;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}