{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notifications-04",
  "title": "Inbox with a reading pane",
  "description": "Notifications grouped by day beside the one selected: read, archive with Undo, filter by unread or mentions, and reply in place.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/avatar.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/tabs.json",
    "https://ui.ndekocode.dev/r/textarea.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/tooltip.json",
    "https://ui.ndekocode.dev/r/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/index.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion, type Transition } from 'motion/react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { ChevronRightIcon, RotateCcwIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport {\n  INBOX,\n  WORKSPACE_NAME,\n  type InboxFilter,\n  type InboxItem,\n} from './data';\nimport { InboxList } from './inbox-list';\nimport { NotificationDetail } from './notification-detail';\n\ntype Archived = { item: InboxItem; index: number };\n\ntype Replies = Record<string, string[]>;\n\nconst FIRST_ID = INBOX[0].id;\nconst UNDO_VISIBLE_MS = 6000;\n\nconst PILL_ARRIVE: Transition = { duration: 0.2, ease: [0.23, 1, 0.32, 1] };\nconst PILL_LEAVE: Transition = { duration: 0.12, ease: [0.23, 1, 0.32, 1] };\n\nfunction withRead(items: InboxItem[], itemId: string, isUnread: boolean) {\n  return items.map((item) => {\n    if (item.id !== itemId) {\n      return item;\n    }\n    return { ...item, isUnread };\n  });\n}\n\nfunction allRead(items: InboxItem[]) {\n  return items.map((item) => ({ ...item, isUnread: false }));\n}\n\nfunction isVisible(\n  item: InboxItem,\n  filter: InboxFilter,\n  selectedId: string | null\n) {\n  if (filter === 'mentions') {\n    return item.kind === 'mention';\n  }\n  if (filter === 'unread') {\n    const isSelected = item.id === selectedId;\n    return item.isUnread || isSelected;\n  }\n  return true;\n}\n\nfunction neighbourOf(visible: InboxItem[], itemId: string) {\n  const index = visible.findIndex((item) => item.id === itemId);\n  const nextIndex = index + 1;\n  const next = visible[nextIndex];\n  if (next) {\n    return next.id;\n  }\n  const previousIndex = index - 1;\n  const previous = visible[previousIndex];\n  if (previous) {\n    return previous.id;\n  }\n  return null;\n}\n\nfunction withInserted(items: InboxItem[], archived: Archived) {\n  const before = items.slice(0, archived.index);\n  const after = items.slice(archived.index);\n  return [...before, archived.item, ...after];\n}\n\nfunction unreadLabelOf(count: number) {\n  if (count === 0) {\n    return 'Nothing unread';\n  }\n  return `${count} unread`;\n}\n\nfunction pillOffsetOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return 0;\n  }\n  return 8;\n}\n\nfunction useUndoTimer(onElapsed: () => void) {\n  const timer = useRef<number | null>(null);\n  const onElapsedRef = useRef(onElapsed);\n\n  useEffect(() => {\n    onElapsedRef.current = onElapsed;\n  }, [onElapsed]);\n\n  useEffect(() => {\n    return () => {\n      if (timer.current !== null) {\n        window.clearTimeout(timer.current);\n      }\n    };\n  }, []);\n\n  function restart() {\n    if (timer.current !== null) {\n      window.clearTimeout(timer.current);\n    }\n    timer.current = window.setTimeout(() => {\n      timer.current = null;\n      onElapsedRef.current();\n    }, UNDO_VISIBLE_MS);\n  }\n\n  return restart;\n}\n\nexport default function Notifications04() {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const [items, setItems] = useState(() => withRead(INBOX, FIRST_ID, false));\n  const [filter, setFilter] = useState<InboxFilter>('all');\n  const [selectedId, setSelectedId] = useState<string | null>(FIRST_ID);\n  const [isDetailOpenOnPhone, setIsDetailOpenOnPhone] = useState(false);\n  const [replies, setReplies] = useState<Replies>({});\n  const [archived, setArchived] = useState<Archived | null>(null);\n  const visibleItems = items.filter((item) =>\n    isVisible(item, filter, selectedId)\n  );\n  const found = items.find((item) => item.id === selectedId);\n  const selected = found ?? null;\n  const unreadCount = items.filter((item) => item.isUnread).length;\n  const replyKey = selectedId ?? '';\n  const storedReplies = replies[replyKey];\n  const selectedReplies = storedReplies ?? [];\n  const pillOffset = pillOffsetOf(shouldReduceMotion);\n\n  function forgetArchived() {\n    setArchived(null);\n  }\n\n  const restartUndoTimer = useUndoTimer(forgetArchived);\n\n  function select(itemId: string) {\n    setSelectedId(itemId);\n    setItems((current) => withRead(current, itemId, false));\n    setIsDetailOpenOnPhone(true);\n  }\n\n  function toggleRead(itemId: string) {\n    const item = items.find((entry) => entry.id === itemId);\n    if (!item) {\n      return;\n    }\n    setItems((current) => withRead(current, itemId, !item.isUnread));\n  }\n\n  function archive(itemId: string) {\n    const index = items.findIndex((item) => item.id === itemId);\n    if (index === -1) {\n      return;\n    }\n    const isSelected = itemId === selectedId;\n    if (isSelected) {\n      const neighbourId = neighbourOf(visibleItems, itemId);\n      setSelectedId(neighbourId);\n    }\n    setArchived({ item: items[index], index });\n    setItems((current) => current.filter((item) => item.id !== itemId));\n    restartUndoTimer();\n  }\n\n  function undoArchive() {\n    if (!archived) {\n      return;\n    }\n    setItems((current) => withInserted(current, archived));\n    setSelectedId(archived.item.id);\n    setArchived(null);\n  }\n\n  function markAllRead() {\n    setItems(allRead);\n  }\n\n  function reply(itemId: string, text: string) {\n    setReplies((current) => {\n      const stored = current[itemId];\n      const previous = stored ?? [];\n      return { ...current, [itemId]: [...previous, text] };\n    });\n  }\n\n  function backToList() {\n    setIsDetailOpenOnPhone(false);\n  }\n\n  return (\n    <div className='bg-background text-foreground flex h-svh min-h-[32rem] w-full flex-col'>\n      <header className='hairline-b border-border flex h-11 shrink-0 items-center justify-between gap-3 px-3 sm:px-5'>\n        <nav\n          aria-label='Breadcrumb'\n          className='flex min-w-0 items-center gap-1.5 text-[13px]'\n        >\n          <span className='text-muted-foreground'>{WORKSPACE_NAME}</span>\n          <ChevronRightIcon className='text-muted-foreground size-3.5' />\n          <span className='font-medium'>Inbox</span>\n        </nav>\n        <p className='text-muted-foreground text-xs tabular-nums'>\n          {unreadLabelOf(unreadCount)}\n        </p>\n      </header>\n      <div className='flex min-h-0 flex-1'>\n        <section\n          aria-label='Notifications'\n          className={cn(\n            'hairline-r border-border relative min-h-0 w-full flex-col md:flex md:w-[23rem] md:shrink-0',\n            isDetailOpenOnPhone && 'hidden',\n            !isDetailOpenOnPhone && 'flex'\n          )}\n        >\n          <InboxList\n            items={visibleItems}\n            filter={filter}\n            unreadCount={unreadCount}\n            selectedId={selectedId}\n            onFilterChange={setFilter}\n            onSelect={select}\n            onArchive={archive}\n            onMarkAllRead={markAllRead}\n          />\n          <AnimatePresence initial={false}>\n            {archived && (\n              <motion.div\n                key={archived.item.id}\n                role='status'\n                initial={{ opacity: 0, y: pillOffset }}\n                animate={{ opacity: 1, y: 0, transition: PILL_ARRIVE }}\n                exit={{ opacity: 0, y: pillOffset, transition: PILL_LEAVE }}\n                className='surface-raised absolute inset-x-3 bottom-3 flex items-center gap-2 rounded-full py-1 ps-4 pe-1 text-[13px]'\n              >\n                <span className='min-w-0 flex-1 truncate'>\n                  Archived{' '}\n                  <span className='text-muted-foreground tabular-nums'>\n                    {archived.item.task.key}\n                  </span>\n                </span>\n                <Button size='sm' variant='ghost' onClick={undoArchive}>\n                  <RotateCcwIcon />\n                  Undo\n                </Button>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </section>\n        <section\n          aria-label='Selected notification'\n          className={cn(\n            'min-h-0 min-w-0 flex-1 md:block',\n            isDetailOpenOnPhone && 'block',\n            !isDetailOpenOnPhone && 'hidden'\n          )}\n        >\n          <NotificationDetail\n            item={selected}\n            replies={selectedReplies}\n            onBack={backToList}\n            onToggleRead={toggleRead}\n            onArchive={archive}\n            onReply={reply}\n          />\n        </section>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/inbox-list.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion, type Transition } from 'motion/react';\nimport { useId } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport {\n  ArchiveIcon,\n  CheckCheckIcon,\n  InboxIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Tabs, TabsList, TabsTab } from '@/registry/ndeko/ui/tabs';\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipTrigger,\n} from '@/registry/ndeko/ui/tooltip';\n\nimport {\n  DAY_LABELS,\n  DAY_ORDER,\n  type DayGroup,\n  type InboxFilter,\n  type InboxItem,\n} from './data';\nimport { IssueTypeGem, SenderAvatar } from './glyphs';\nimport { rowCollapseOf, UnreadDot } from './motion-parts';\n\nconst ROW_SELECTOR = '[data-inbox-row]';\n\nconst TRAVEL: Transition = { type: 'spring', bounce: 0, duration: 0.3 };\n\nconst INSTANT: Transition = { duration: 0 };\n\nconst FILTERS: { value: InboxFilter; label: string }[] = [\n  { value: 'all', label: 'All' },\n  { value: 'unread', label: 'Unread' },\n  { value: 'mentions', label: 'Mentions' },\n];\n\nconst EMPTY_COPY: Record<InboxFilter, { title: string; text: string }> = {\n  all: {\n    title: 'Your inbox is empty',\n    text: 'Mentions, assignments and changes on your tasks arrive here',\n  },\n  unread: {\n    title: 'You are all caught up',\n    text: 'Everything in your inbox has been read',\n  },\n  mentions: {\n    title: 'No mentions',\n    text: 'When someone writes your name, it shows up here',\n  },\n};\n\nconst ROW_ACTION =\n  'relative z-10 inline-flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none transition-colors duration-150 hover:bg-foreground/5 hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/25';\n\nfunction travelOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return INSTANT;\n  }\n  return TRAVEL;\n}\n\nfunction isInboxFilter(value: unknown): value is InboxFilter {\n  return FILTERS.some((filter) => filter.value === value);\n}\n\nfunction stepOf(key: string) {\n  if (key === 'ArrowDown') {\n    return 1;\n  }\n  if (key === 'ArrowUp') {\n    return -1;\n  }\n  return 0;\n}\n\n/** Up and down move between rows, like a mail list; Tab still walks every control. */\nfunction moveRowFocus(event: React.KeyboardEvent<HTMLDivElement>) {\n  const step = stepOf(event.key);\n  if (step === 0) {\n    return;\n  }\n  const rows = Array.from(\n    event.currentTarget.querySelectorAll<HTMLButtonElement>(ROW_SELECTOR)\n  );\n  if (rows.length === 0) {\n    return;\n  }\n  event.preventDefault();\n  const active = document.activeElement;\n  const current = rows.findIndex((row) => row === active);\n  const target = current + step;\n  const lastIndex = rows.length - 1;\n  const clamped = Math.max(0, target);\n  const next = Math.min(lastIndex, clamped);\n  rows[next].focus();\n}\n\nfunction senderLineOf(item: InboxItem) {\n  if (item.kind === 'mention') {\n    return `${item.sender.name} mentioned you`;\n  }\n  if (item.kind === 'comment') {\n    return `${item.sender.name} commented`;\n  }\n  if (item.kind === 'assigned') {\n    return `${item.sender.name} assigned it to you`;\n  }\n  return `${item.sender.name} changed the status`;\n}\n\nfunction itemsOfDay(items: InboxItem[], day: DayGroup) {\n  return items.filter((item) => item.day === day);\n}\n\n/** Only the Unread tab carries a count, so only it needs a spoken label. */\nfunction tabLabelOf(filter: InboxFilter, unreadCount: number) {\n  if (filter !== 'unread') {\n    return undefined;\n  }\n  if (unreadCount === 0) {\n    return 'Unread';\n  }\n  return `Unread, ${unreadCount}`;\n}\n\ntype RowProps = {\n  item: InboxItem;\n  isSelected: boolean;\n  indicatorId: string;\n  onSelect: (itemId: string) => void;\n  onArchive: (itemId: string) => void;\n};\n\nfunction InboxRow({\n  item,\n  isSelected,\n  indicatorId,\n  onSelect,\n  onArchive,\n}: RowProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n\n  return (\n    <motion.li\n      variants={rowCollapseOf(shouldReduceMotion)}\n      initial='hidden'\n      animate='shown'\n      exit='hidden'\n      className='overflow-hidden'\n    >\n      <div className='group/row relative flex items-start gap-3 rounded-lg py-2.5 ps-4 pe-2.5'>\n        {isSelected && (\n          <motion.span\n            layoutId={indicatorId}\n            aria-hidden='true'\n            transition={travelOf(shouldReduceMotion)}\n            className='bg-foreground/[0.05] absolute inset-0 rounded-lg'\n          />\n        )}\n        <UnreadDot\n          isUnread={item.isUnread}\n          className='absolute start-1.5 top-[1.15rem]'\n        />\n        <SenderAvatar person={item.sender} kind={item.kind} />\n        <button\n          type='button'\n          data-inbox-row=''\n          aria-current={isSelected}\n          onClick={() => onSelect(item.id)}\n          className='focus-visible:after:ring-ring/25 min-w-0 flex-1 cursor-pointer text-left outline-none after:absolute after:inset-0 after:rounded-lg focus-visible:after:ring-[3px]'\n        >\n          <span className='flex min-w-0 items-center gap-1.5'>\n            <IssueTypeGem type={item.task.type} />\n            <span className='text-muted-foreground shrink-0 text-xs tabular-nums'>\n              {item.task.key}\n            </span>\n            <span\n              className={cn(\n                'truncate text-[13px] font-medium transition-colors duration-200',\n                !item.isUnread && 'text-muted-foreground'\n              )}\n            >\n              {item.task.title}\n            </span>\n          </span>\n          <span className='text-muted-foreground mt-0.5 block truncate text-xs'>\n            {senderLineOf(item)}\n          </span>\n          <span className='sr-only'>\n            , {item.time}\n            {item.isUnread && ', unread'}\n          </span>\n        </button>\n        <span className='relative flex h-5 shrink-0 items-center'>\n          <span\n            aria-hidden='true'\n            className='text-muted-foreground text-xs tabular-nums transition-opacity duration-150 group-focus-within/row:opacity-0 group-hover/row:opacity-0 pointer-coarse:hidden'\n          >\n            {item.time}\n          </span>\n          <span className='absolute end-0 flex opacity-0 transition-opacity duration-150 group-focus-within/row:opacity-100 group-hover/row:opacity-100 pointer-coarse:static pointer-coarse:opacity-100'>\n            <Tooltip>\n              <TooltipTrigger\n                aria-label={`Archive ${item.task.key}`}\n                onClick={() => onArchive(item.id)}\n                className={ROW_ACTION}\n              >\n                <ArchiveIcon className='size-3.5' />\n              </TooltipTrigger>\n              <TooltipContent>Archive</TooltipContent>\n            </Tooltip>\n          </span>\n        </span>\n      </div>\n    </motion.li>\n  );\n}\n\ntype DaySectionProps = {\n  day: DayGroup;\n  items: InboxItem[];\n  selectedId: string | null;\n  indicatorId: string;\n  onSelect: (itemId: string) => void;\n  onArchive: (itemId: string) => void;\n};\n\nfunction DaySection({\n  day,\n  items,\n  selectedId,\n  indicatorId,\n  onSelect,\n  onArchive,\n}: DaySectionProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const headingId = useId();\n\n  return (\n    <motion.section\n      aria-labelledby={headingId}\n      variants={rowCollapseOf(shouldReduceMotion)}\n      initial='hidden'\n      animate='shown'\n      exit='hidden'\n      className='overflow-hidden'\n    >\n      <h3\n        id={headingId}\n        className='text-muted-foreground flex items-center gap-1.5 px-3 pt-3 pb-1 text-xs'\n      >\n        {DAY_LABELS[day]}\n        <span className='text-muted-foreground/75 tabular-nums'>\n          {items.length}\n        </span>\n      </h3>\n      <ul>\n        <AnimatePresence initial={false}>\n          {items.map((item) => (\n            <InboxRow\n              key={item.id}\n              item={item}\n              isSelected={item.id === selectedId}\n              indicatorId={indicatorId}\n              onSelect={onSelect}\n              onArchive={onArchive}\n            />\n          ))}\n        </AnimatePresence>\n      </ul>\n    </motion.section>\n  );\n}\n\nfunction EmptyInbox({\n  filter,\n  onShowAll,\n}: {\n  filter: InboxFilter;\n  onShowAll: () => void;\n}) {\n  const copy = EMPTY_COPY[filter];\n  const isFiltered = filter !== 'all';\n\n  return (\n    <div className='flex flex-col items-center px-6 py-12 text-center'>\n      <span className='keycap-3d text-muted-foreground flex size-9 items-center justify-center rounded-lg'>\n        <InboxIcon />\n      </span>\n      <p className='mt-3 text-sm font-medium'>{copy.title}</p>\n      <p className='text-muted-foreground mt-1 max-w-64 text-[13px] text-balance'>\n        {copy.text}\n      </p>\n      {isFiltered && (\n        <Button\n          size='sm'\n          variant='outline'\n          onClick={onShowAll}\n          className='mt-4'\n        >\n          Show all notifications\n        </Button>\n      )}\n    </div>\n  );\n}\n\ntype InboxListProps = {\n  items: InboxItem[];\n  filter: InboxFilter;\n  unreadCount: number;\n  selectedId: string | null;\n  onFilterChange: (filter: InboxFilter) => void;\n  onSelect: (itemId: string) => void;\n  onArchive: (itemId: string) => void;\n  onMarkAllRead: () => void;\n};\n\nexport function InboxList({\n  items,\n  filter,\n  unreadCount,\n  selectedId,\n  onFilterChange,\n  onSelect,\n  onArchive,\n  onMarkAllRead,\n}: InboxListProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const indicatorId = useId();\n  const hasUnread = unreadCount > 0;\n  const isEmpty = items.length === 0;\n  const days = DAY_ORDER.filter((day) => itemsOfDay(items, day).length > 0);\n\n  function changeFilter(value: unknown) {\n    if (isInboxFilter(value)) {\n      onFilterChange(value);\n    }\n  }\n\n  function showAll() {\n    onFilterChange('all');\n  }\n\n  return (\n    <div className='flex h-full min-h-0 flex-col'>\n      <div className='flex items-center justify-between gap-2 px-3 pt-3 pb-1'>\n        <Tabs value={filter} onValueChange={changeFilter}>\n          <TabsList variant='segmented' aria-label='Filter notifications'>\n            {FILTERS.map((option) => {\n              const isUnreadTab = option.value === 'unread';\n              const showsCount = isUnreadTab && hasUnread;\n              return (\n                <TabsTab\n                  key={option.value}\n                  value={option.value}\n                  aria-label={tabLabelOf(option.value, unreadCount)}\n                >\n                  {option.label}\n                  {showsCount && (\n                    <span\n                      aria-hidden='true'\n                      className='bg-foreground/[0.07] text-muted-foreground inline-flex h-4 min-w-4 items-center justify-center rounded-[5px] px-1 text-[11px] tabular-nums'\n                    >\n                      {unreadCount}\n                    </span>\n                  )}\n                </TabsTab>\n              );\n            })}\n          </TabsList>\n        </Tabs>\n        <Tooltip>\n          <TooltipTrigger\n            render={\n              <Button\n                variant='ghost'\n                size='icon-sm'\n                aria-label='Mark all as read'\n                disabled={!hasUnread}\n                onClick={onMarkAllRead}\n                className='text-muted-foreground'\n              />\n            }\n          >\n            <CheckCheckIcon />\n          </TooltipTrigger>\n          <TooltipContent>Mark all as read</TooltipContent>\n        </Tooltip>\n      </div>\n      <div\n        onKeyDown={moveRowFocus}\n        className='min-h-0 flex-1 overflow-y-auto px-2 pb-2'\n      >\n        <AnimatePresence initial={false}>\n          {days.map((day) => (\n            <DaySection\n              key={day}\n              day={day}\n              items={itemsOfDay(items, day)}\n              selectedId={selectedId}\n              indicatorId={indicatorId}\n              onSelect={onSelect}\n              onArchive={onArchive}\n            />\n          ))}\n          {isEmpty && (\n            <motion.div\n              key={`empty-${filter}`}\n              variants={rowCollapseOf(shouldReduceMotion)}\n              initial='hidden'\n              animate='shown'\n              exit='hidden'\n              className='overflow-hidden'\n            >\n              <EmptyInbox filter={filter} onShowAll={showAll} />\n            </motion.div>\n          )}\n        </AnimatePresence>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/inbox-list.tsx"
    },
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/notification-detail.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion, type Transition } from 'motion/react';\nimport { useId, useState } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport {\n  ArchiveIcon,\n  ArrowLeftIcon,\n  ArrowRightIcon,\n  ArrowUpRightIcon,\n  CheckIcon,\n  InboxIcon,\n  MailIcon,\n  SendIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Textarea } from '@/registry/ndeko/ui/textarea';\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipTrigger,\n} from '@/registry/ndeko/ui/tooltip';\n\nimport {\n  YOU,\n  type AssignedItem,\n  type InboxItem,\n  type MessageItem,\n  type StatusItem,\n} from './data';\nimport { IssueTypeGem, PersonAvatar, SenderAvatar, StatusChip } from './glyphs';\nimport { rowCollapseOf, Swap } from './motion-parts';\n\nconst PANE_FADE: Transition = { duration: 0.14, ease: [0.23, 1, 0.32, 1] };\n\nfunction eventOf(item: InboxItem) {\n  if (item.kind === 'mention') {\n    return 'mentioned you';\n  }\n  if (item.kind === 'comment') {\n    return 'commented';\n  }\n  if (item.kind === 'assigned') {\n    return 'assigned this task to you';\n  }\n  return 'changed the status';\n}\n\nfunction isMessageItem(item: InboxItem): item is MessageItem {\n  const isMention = item.kind === 'mention';\n  const isComment = item.kind === 'comment';\n  return isMention || isComment;\n}\n\nfunction isAssignedItem(item: InboxItem): item is AssignedItem {\n  return item.kind === 'assigned';\n}\n\nfunction isStatusItem(item: InboxItem): item is StatusItem {\n  return item.kind === 'status';\n}\n\nfunction readLabelOf(isUnread: boolean) {\n  if (isUnread) {\n    return 'Mark as read';\n  }\n  return 'Mark as unread';\n}\n\nfunction firstNameOf(name: string) {\n  const [firstName] = name.split(' ');\n  return firstName;\n}\n\ntype ReplyThreadProps = {\n  item: MessageItem;\n  replies: string[];\n  onReply: (itemId: string, text: string) => void;\n};\n\nfunction ReplyThread({ item, replies, onReply }: ReplyThreadProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const fieldId = useId();\n  const [draft, setDraft] = useState('');\n  const trimmed = draft.trim();\n  const canSend = trimmed.length > 0;\n  const placeholder = `Reply to ${firstNameOf(item.sender.name)}`;\n\n  function submit(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    if (!canSend) {\n      return;\n    }\n    onReply(item.id, trimmed);\n    setDraft('');\n  }\n\n  function sendOnShortcut(event: React.KeyboardEvent<HTMLTextAreaElement>) {\n    const isEnter = event.key === 'Enter';\n    const hasModifier = event.metaKey || event.ctrlKey;\n    const isSendShortcut = isEnter && hasModifier;\n    if (!isSendShortcut) {\n      return;\n    }\n    event.preventDefault();\n    event.currentTarget.form?.requestSubmit();\n  }\n\n  return (\n    <div className='flex flex-col gap-4'>\n      <blockquote className='bg-foreground/[0.025] hairline-ring ring-border rounded-xl px-4 py-3 text-[13px] leading-6'>\n        {item.quote}\n      </blockquote>\n      <ul aria-label='Your replies' className='flex flex-col'>\n        <AnimatePresence initial={false}>\n          {replies.map((reply, index) => (\n            <motion.li\n              key={`${item.id}-${index}`}\n              variants={rowCollapseOf(shouldReduceMotion)}\n              initial='hidden'\n              animate='shown'\n              exit='hidden'\n              className='overflow-hidden'\n            >\n              <div className='flex items-start gap-3 pb-4'>\n                <PersonAvatar person={YOU} />\n                <div className='min-w-0'>\n                  <p className='text-xs'>\n                    <span className='font-medium'>{YOU.name}</span>\n                    <span className='text-muted-foreground'> · now</span>\n                  </p>\n                  <p className='mt-0.5 text-[13px] leading-5 whitespace-pre-wrap'>\n                    {reply}\n                  </p>\n                </div>\n              </div>\n            </motion.li>\n          ))}\n        </AnimatePresence>\n      </ul>\n      <form onSubmit={submit} className='flex flex-col gap-2'>\n        <label htmlFor={fieldId} className='sr-only'>\n          {placeholder}\n        </label>\n        <Textarea\n          id={fieldId}\n          value={draft}\n          onChange={(event) => setDraft(event.target.value)}\n          onKeyDown={sendOnShortcut}\n          placeholder={placeholder}\n          rows={2}\n          className='min-h-16 resize-none'\n        />\n        <div className='flex justify-end'>\n          <Button type='submit' size='sm' disabled={!canSend}>\n            <SendIcon />\n            Reply\n          </Button>\n        </div>\n      </form>\n    </div>\n  );\n}\n\nfunction AssignmentFacts({ item }: { item: AssignedItem }) {\n  return (\n    <dl className='grid grid-cols-[7rem_minmax(0,1fr)] gap-y-3 text-[13px]'>\n      <dt className='text-muted-foreground'>Status</dt>\n      <dd>\n        <StatusChip status={item.status} />\n      </dd>\n      <dt className='text-muted-foreground'>Due</dt>\n      <dd>{item.due}</dd>\n      <dt className='text-muted-foreground'>Estimate</dt>\n      <dd className='tabular-nums'>{item.estimate}</dd>\n      <dt className='text-muted-foreground'>Assigned by</dt>\n      <dd className='flex items-center gap-2'>\n        <PersonAvatar person={item.sender} className='size-5 text-[9px]' />\n        {item.sender.name}\n      </dd>\n    </dl>\n  );\n}\n\nfunction StatusChange({ item }: { item: StatusItem }) {\n  return (\n    <p className='flex flex-wrap items-center gap-2'>\n      <StatusChip status={item.from} />\n      <ArrowRightIcon className='text-muted-foreground size-3.5' />\n      <span className='sr-only'>to</span>\n      <StatusChip status={item.to} />\n    </p>\n  );\n}\n\ntype DetailBodyProps = {\n  item: InboxItem;\n  replies: string[];\n  onReply: (itemId: string, text: string) => void;\n};\n\nfunction DetailBody({ item, replies, onReply }: DetailBodyProps) {\n  return (\n    <div className='flex flex-col gap-5'>\n      <div>\n        <h2 className='text-lg font-semibold text-balance'>\n          {item.task.title}\n        </h2>\n        <p className='text-muted-foreground mt-1 text-xs'>\n          {item.task.project} · {item.task.key}\n        </p>\n      </div>\n      <div className='flex items-center gap-3'>\n        <SenderAvatar person={item.sender} kind={item.kind} />\n        <p className='text-muted-foreground text-[13px]'>\n          <span className='text-foreground font-medium'>\n            {item.sender.name}\n          </span>{' '}\n          {eventOf(item)}\n          <span className='tabular-nums'> · {item.time}</span>\n        </p>\n      </div>\n      {isMessageItem(item) && (\n        <ReplyThread item={item} replies={replies} onReply={onReply} />\n      )}\n      {isAssignedItem(item) && <AssignmentFacts item={item} />}\n      {isStatusItem(item) && <StatusChange item={item} />}\n    </div>\n  );\n}\n\nfunction NothingSelected() {\n  return (\n    <div className='flex h-full flex-col items-center justify-center px-6 text-center'>\n      <span className='keycap-3d text-muted-foreground flex size-9 items-center justify-center rounded-lg'>\n        <InboxIcon />\n      </span>\n      <p className='mt-3 text-sm font-medium'>Nothing selected</p>\n      <p className='text-muted-foreground mt-1 max-w-60 text-[13px] text-balance'>\n        Pick a notification to read it here, or press the arrows in the list\n      </p>\n    </div>\n  );\n}\n\ntype NotificationDetailProps = {\n  item: InboxItem | null;\n  replies: string[];\n  onBack: () => void;\n  onToggleRead: (itemId: string) => void;\n  onArchive: (itemId: string) => void;\n  onReply: (itemId: string, text: string) => void;\n};\n\nexport function NotificationDetail({\n  item,\n  replies,\n  onBack,\n  onToggleRead,\n  onArchive,\n  onReply,\n}: NotificationDetailProps) {\n  if (!item) {\n    return <NothingSelected />;\n  }\n\n  const readLabel = readLabelOf(item.isUnread);\n\n  return (\n    <div className='flex h-full min-h-0 flex-col'>\n      <div className='flex h-12 shrink-0 items-center gap-1 px-3 md:px-5'>\n        <Button\n          variant='ghost'\n          size='icon-sm'\n          aria-label='Back to the inbox'\n          onClick={onBack}\n          className='text-muted-foreground -ms-1 md:hidden'\n        >\n          <ArrowLeftIcon />\n        </Button>\n        <span className='flex min-w-0 items-center gap-1.5 text-xs'>\n          <IssueTypeGem type={item.task.type} />\n          <span className='text-muted-foreground tabular-nums'>\n            {item.task.key}\n          </span>\n        </span>\n        <div className='ms-auto flex items-center gap-1'>\n          <Tooltip>\n            <TooltipTrigger\n              render={\n                <Button\n                  variant='ghost'\n                  size='icon-sm'\n                  aria-label={readLabel}\n                  onClick={() => onToggleRead(item.id)}\n                  className='text-muted-foreground'\n                />\n              }\n            >\n              <Swap swapKey={String(item.isUnread)}>\n                {item.isUnread && <CheckIcon />}\n                {!item.isUnread && <MailIcon />}\n              </Swap>\n            </TooltipTrigger>\n            <TooltipContent>{readLabel}</TooltipContent>\n          </Tooltip>\n          <Tooltip>\n            <TooltipTrigger\n              render={\n                <Button\n                  variant='ghost'\n                  size='icon-sm'\n                  aria-label='Archive'\n                  onClick={() => onArchive(item.id)}\n                  className='text-muted-foreground'\n                />\n              }\n            >\n              <ArchiveIcon />\n            </TooltipTrigger>\n            <TooltipContent>Archive</TooltipContent>\n          </Tooltip>\n          <Button\n            size='sm'\n            variant='outline'\n            nativeButton={false}\n            render={<a href='#' />}\n            className='ms-1'\n          >\n            Open task\n            <ArrowUpRightIcon />\n          </Button>\n        </div>\n      </div>\n      <div className='relative min-h-0 flex-1 overflow-y-auto'>\n        <AnimatePresence mode='popLayout' initial={false}>\n          <motion.div\n            key={item.id}\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n            transition={PANE_FADE}\n            className='mx-auto w-full max-w-xl px-4 pt-2 pb-8 md:px-8'\n          >\n            <DetailBody item={item} replies={replies} onReply={onReply} />\n          </motion.div>\n        </AnimatePresence>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/notification-detail.tsx"
    },
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/glyphs.tsx",
      "content": "import {\n  AtSignIcon,\n  BookmarkIcon,\n  CheckIcon,\n  CircleAlertIcon,\n  CircleCheckIcon,\n  CircleDashedIcon,\n  CircleIcon,\n  EclipseIcon,\n  EyeIcon,\n  MessageCircleIcon,\n  UserRoundPlusIcon,\n  type Icon,\n} from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Avatar } from '@/registry/ndeko/ui/avatar';\n\nimport type { IssueType, NotificationKind, Person, StatusId } from './data';\n\ntype Meta = { label: string; color: string; glyph: Icon };\n\nconst ISSUE_TYPES: Record<IssueType, Meta> = {\n  task: { label: 'Task', color: 'var(--info)', glyph: CheckIcon },\n  bug: { label: 'Bug', color: 'var(--destructive)', glyph: CircleAlertIcon },\n  story: { label: 'Story', color: 'var(--success)', glyph: BookmarkIcon },\n};\n\nconst KINDS: Record<NotificationKind, Meta> = {\n  mention: { label: 'Mention', color: 'var(--info)', glyph: AtSignIcon },\n  comment: {\n    label: 'Comment',\n    color: 'var(--success)',\n    glyph: MessageCircleIcon,\n  },\n  assigned: {\n    label: 'Assignment',\n    color: 'var(--primary)',\n    glyph: UserRoundPlusIcon,\n  },\n  status: {\n    label: 'Status change',\n    color: 'var(--muted-foreground)',\n    glyph: CircleDashedIcon,\n  },\n};\n\nexport const STATUSES: Record<StatusId, Meta> = {\n  todo: { label: 'Todo', color: 'var(--info)', glyph: CircleIcon },\n  'in-progress': {\n    label: 'In progress',\n    color: 'var(--warning)',\n    glyph: EclipseIcon,\n  },\n  'in-review': { label: 'In review', color: 'var(--primary)', glyph: EyeIcon },\n  done: { label: 'Done', color: 'var(--success)', glyph: CircleCheckIcon },\n};\n\nexport function IssueTypeGem({ type }: { type: IssueType }) {\n  const meta = ISSUE_TYPES[type];\n  const Glyph = meta.glyph;\n  const gemStyle = { '--gem': meta.color } as React.CSSProperties;\n\n  return (\n    <span\n      role='img'\n      aria-label={meta.label}\n      style={gemStyle}\n      className='gem-plate inline-flex size-4 shrink-0 items-center justify-center rounded-[5px]'\n    >\n      <Glyph strokeWidth={2.5} className='size-2.5' />\n    </span>\n  );\n}\n\nexport function PersonAvatar({\n  person,\n  className,\n}: {\n  person: Person;\n  className?: string;\n}) {\n  return (\n    <Avatar\n      className={cn('size-7 text-[10px]', className)}\n      seed={person.name}\n    />\n  );\n}\n\n/** A sender's face with the kind of the notification on its lower corner. */\nexport function SenderAvatar({\n  person,\n  kind,\n  className,\n}: {\n  person: Person;\n  kind: NotificationKind;\n  className?: string;\n}) {\n  const meta = KINDS[kind];\n  const Glyph = meta.glyph;\n  const badgeStyle = { '--chip': meta.color } as React.CSSProperties;\n\n  return (\n    <span className={cn('relative inline-flex shrink-0', className)}>\n      <PersonAvatar person={person} />\n      <span\n        aria-hidden='true'\n        className='bg-card absolute -end-1 -bottom-1 inline-flex rounded-full p-px'\n      >\n        <span\n          style={badgeStyle}\n          className='chip-3d inline-flex size-4 items-center justify-center rounded-full'\n        >\n          <Glyph strokeWidth={2.25} className='size-2.5' />\n        </span>\n      </span>\n    </span>\n  );\n}\n\nexport function StatusChip({ status }: { status: StatusId }) {\n  const meta = STATUSES[status];\n  const Glyph = meta.glyph;\n  const chipStyle = { '--chip': meta.color } as React.CSSProperties;\n\n  return (\n    <span\n      style={chipStyle}\n      className='chip-3d inline-flex h-5 items-center gap-1 rounded-md px-1.5 text-xs font-medium whitespace-nowrap'\n    >\n      <Glyph strokeWidth={2.25} className='size-3' />\n      {meta.label}\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/glyphs.tsx"
    },
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/motion-parts.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { cn } from '@/registry/ndeko/lib/utils';\n\nconst EASE_OUT_STRONG: [number, number, number, number] = [0.23, 1, 0.32, 1];\n\n/**\n * The spring AnimatedSize resizes with. It starts from rest, so the fade leads and the freed space\n * closes after it at the pace the list follows, instead of snapping shut.\n */\nconst SIZE_SPRING: Transition = { type: 'spring', bounce: 0, duration: 0.32 };\n\nconst ARRIVE: Transition = {\n  ...SIZE_SPRING,\n  opacity: { duration: 0.2, ease: EASE_OUT_STRONG },\n};\n\nconst LEAVE: Transition = {\n  ...SIZE_SPRING,\n  opacity: { duration: 0.12, ease: EASE_OUT_STRONG },\n};\n\nconst ROW_VARIANTS: Variants = {\n  shown: { height: 'auto', opacity: 1, transition: ARRIVE },\n  hidden: { height: 0, opacity: 0, transition: LEAVE },\n};\n\nconst FADE_VARIANTS: Variants = {\n  shown: { opacity: 1, transition: { duration: 0.2, ease: EASE_OUT_STRONG } },\n  hidden: { opacity: 0, transition: { duration: 0.12, ease: EASE_OUT_STRONG } },\n};\n\n/** A row whose spacing sits inside it: its height and opacity close together. */\nexport function rowCollapseOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return ROW_VARIANTS;\n}\n\nconst SWAP_TRANSITION: Transition = { duration: 0.15, ease: [0.2, 0, 0, 1] };\n\nconst SWAP_VARIANTS: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst SWAP_FADE: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\nfunction swapVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return SWAP_FADE;\n  }\n  return SWAP_VARIANTS;\n}\n\ntype SwapProps = {\n  swapKey: string;\n  className?: string;\n  children: React.ReactNode;\n};\n\n/** An icon that becomes another: the old one shrinks out of focus while the new one settles. */\nexport function Swap({ swapKey, className, children }: SwapProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n\n  return (\n    <AnimatePresence mode='popLayout' initial={false}>\n      <motion.span\n        key={swapKey}\n        variants={swapVariantsOf(shouldReduceMotion)}\n        initial='enter'\n        animate='visible'\n        exit='exit'\n        transition={SWAP_TRANSITION}\n        className={cn('flex', className)}\n      >\n        {children}\n      </motion.span>\n    </AnimatePresence>\n  );\n}\n\nconst DOT_ARRIVE: Transition = { duration: 0.18, ease: EASE_OUT_STRONG };\n\nconst DOT_LEAVE: Transition = { duration: 0.12, ease: EASE_OUT_STRONG };\n\nfunction dotScaleOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return 1;\n  }\n  return 0.4;\n}\n\n/** The primary dot of an unread notification. It shrinks away when the notification is read. */\nexport function UnreadDot({\n  isUnread,\n  className,\n}: {\n  isUnread: boolean;\n  className?: string;\n}) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const hiddenScale = dotScaleOf(shouldReduceMotion);\n\n  return (\n    <AnimatePresence initial={false}>\n      {isUnread && (\n        <motion.span\n          key='unread'\n          aria-hidden='true'\n          initial={{ opacity: 0, scale: hiddenScale }}\n          animate={{ opacity: 1, scale: 1, transition: DOT_ARRIVE }}\n          exit={{ opacity: 0, scale: hiddenScale, transition: DOT_LEAVE }}\n          className={cn('bg-primary block size-1.5 rounded-full', className)}\n        />\n      )}\n    </AnimatePresence>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/motion-parts.tsx"
    },
    {
      "path": "registry/ndeko/blocks/notifications/notifications-04/data.ts",
      "content": "export type IssueType = 'task' | 'bug' | 'story';\n\nexport type StatusId = 'todo' | 'in-progress' | 'in-review' | 'done';\n\nexport type NotificationKind = 'mention' | 'comment' | 'assigned' | 'status';\n\nexport type DayGroup = 'today' | 'yesterday' | 'earlier';\n\nexport type InboxFilter = 'all' | 'unread' | 'mentions';\n\nexport type Person = {\n  id: string;\n  name: string;\n};\n\nexport type TaskRef = {\n  key: string;\n  title: string;\n  type: IssueType;\n  project: string;\n};\n\ntype BaseItem = {\n  id: string;\n  sender: Person;\n  task: TaskRef;\n  day: DayGroup;\n  time: string;\n  isUnread: boolean;\n};\n\nexport type MessageItem = BaseItem & {\n  kind: 'mention' | 'comment';\n  quote: string;\n};\n\nexport type AssignedItem = BaseItem & {\n  kind: 'assigned';\n  due: string;\n  estimate: string;\n  status: StatusId;\n};\n\nexport type StatusItem = BaseItem & {\n  kind: 'status';\n  from: StatusId;\n  to: StatusId;\n};\n\nexport type InboxItem = MessageItem | AssignedItem | StatusItem;\n\nexport const WORKSPACE_NAME = 'Fernhall';\n\nexport const YOU: Person = {\n  id: 'you',\n  name: 'Amara Okafor',\n};\n\nconst LEO: Person = {\n  id: 'leo',\n  name: 'Léo Martin',\n};\n\nconst SANA: Person = {\n  id: 'sana',\n  name: 'Sana Iqbal',\n};\n\nconst TOMAS: Person = {\n  id: 'tomas',\n  name: 'Tomás Rivera',\n};\n\nconst MEI: Person = {\n  id: 'mei',\n  name: 'Mei Lin',\n};\n\nconst JONAS: Person = { id: 'jonas', name: 'Jonas Weber' };\n\nexport const DAY_LABELS: Record<DayGroup, string> = {\n  today: 'Today',\n  yesterday: 'Yesterday',\n  earlier: 'Earlier this week',\n};\n\nexport const DAY_ORDER: DayGroup[] = ['today', 'yesterday', 'earlier'];\n\nexport const INBOX: InboxItem[] = [\n  {\n    id: 'n-148',\n    kind: 'mention',\n    sender: SANA,\n    task: {\n      key: 'FRN-148',\n      title: 'Booking calendar skips a week',\n      type: 'bug',\n      project: 'Field App',\n    },\n    quote:\n      'Can you check the empty week on the phone layout? It only happens when the month starts on a Sunday.',\n    day: 'today',\n    time: '09:41',\n    isUnread: true,\n  },\n  {\n    id: 'n-152',\n    kind: 'comment',\n    sender: LEO,\n    task: {\n      key: 'FRN-152',\n      title: 'Offline drafts for field notes',\n      type: 'story',\n      project: 'Field App',\n    },\n    quote:\n      'Drafts now sync as soon as the tab is back online. When both sides changed, the last edit wins and the other one stays in the history.',\n    day: 'today',\n    time: '09:05',\n    isUnread: true,\n  },\n  {\n    id: 'n-164',\n    kind: 'assigned',\n    sender: MEI,\n    task: {\n      key: 'FRN-164',\n      title: 'Copy for the weekly digest',\n      type: 'task',\n      project: 'Growth',\n    },\n    due: 'Friday',\n    estimate: '3h',\n    status: 'todo',\n    day: 'today',\n    time: '08:30',\n    isUnread: true,\n  },\n  {\n    id: 'n-139',\n    kind: 'status',\n    sender: TOMAS,\n    task: {\n      key: 'FRN-139',\n      title: 'Rate limit the share links',\n      type: 'task',\n      project: 'Platform',\n    },\n    from: 'in-progress',\n    to: 'in-review',\n    day: 'yesterday',\n    time: '17:20',\n    isUnread: false,\n  },\n  {\n    id: 'n-158',\n    kind: 'comment',\n    sender: MEI,\n    task: {\n      key: 'FRN-158',\n      title: 'Onboarding checklist on small screens',\n      type: 'story',\n      project: 'Growth',\n    },\n    quote:\n      'The last step wraps on a 375 px screen. Could the button go under the text there?',\n    day: 'yesterday',\n    time: '11:02',\n    isUnread: false,\n  },\n  {\n    id: 'n-171',\n    kind: 'mention',\n    sender: JONAS,\n    task: {\n      key: 'FRN-171',\n      title: 'Weekly report export',\n      type: 'task',\n      project: 'Platform',\n    },\n    quote: 'The CSV leaves out the project column. Is that on purpose?',\n    day: 'earlier',\n    time: 'Mon',\n    isUnread: false,\n  },\n  {\n    id: 'n-127',\n    kind: 'status',\n    sender: SANA,\n    task: {\n      key: 'FRN-127',\n      title: 'Paginate the notes list',\n      type: 'task',\n      project: 'Field App',\n    },\n    from: 'in-review',\n    to: 'done',\n    day: 'earlier',\n    time: 'Mon',\n    isUnread: false,\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/notifications-04/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "notifications"
  ],
  "type": "registry:block"
}