{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-shell-04",
  "description": "An app shell with no sidebar: page links sit under the top bar and scroll sideways on small screens.",
  "registryDependencies": [
    "https://www.dashboardblocks.com/r/radix/app-shell.json",
    "https://www.dashboardblocks.com/r/radix/link.json",
    "https://www.dashboardblocks.com/r/radix/tag.json"
  ],
  "files": [
    {
      "path": "registry/components/dashboardblocks/app-shell/app-shell-04.tsx",
      "content": "'use client'\n\nimport {\n  type AppUser,\n  BrandMark,\n  type NavLink,\n  NotificationsButton,\n  SearchButton,\n  TopNav,\n  UserMenu,\n  type UserMenuLink,\n} from '@/registry/components/dashboardblocks/app-shell'\nimport { Link } from '@/registry/components/dashboardblocks/link'\nimport { Tag } from '@/registry/components/dashboardblocks/tag'\nimport { IconPlaceholder } from '@/registry/icons/icon-placeholder'\nimport type { ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface AppShell4Props {\n  children?: ReactNode\n  description?: string\n  links: NavLink[]\n  notificationCount: number\n  onNotificationsClick?: () => void\n  onSearch?: () => void\n  onSignOut?: () => void\n  pathname: string\n  title: string\n  user: AppUser\n  userLinks: UserMenuLink[]\n}\n\nconst exampleProps: AppShell4Props = {\n  description: '18 deployments this week, 1 of them failed and rolled back.',\n  links: [\n    { href: '/', title: 'Overview' },\n    { href: '/deployments', title: 'Deployments' },\n    { badge: <Tag tone='bad'>2</Tag>, href: '/incidents', title: 'Incidents' },\n    { href: '/logs', title: 'Logs' },\n    { href: '/usage', title: 'Usage' },\n    { href: '/settings', title: 'Settings' },\n  ],\n  notificationCount: 2,\n  pathname: '/deployments',\n  title: 'Deployments',\n  user: { avatar: '/images/avatar-13.webp', email: 'kai@orbit.sh', name: 'Kai Turner' },\n  userLinks: [\n    {\n      href: '/account',\n      icon: (\n        <IconPlaceholder\n          lucide='CircleUserRoundIcon'\n          tabler='IconUserCircle'\n          hugeicons='UserCircle02Icon'\n          phosphor='UserCircleIcon'\n          remixicon='RiUserLine'\n        />\n      ),\n      label: 'Account',\n    },\n    {\n      href: '/billing',\n      icon: (\n        <IconPlaceholder\n          lucide='CreditCardIcon'\n          tabler='IconCreditCard'\n          hugeicons='CreditCardIcon'\n          phosphor='CreditCardIcon'\n          remixicon='RiBankCardLine'\n        />\n      ),\n      label: 'Billing',\n    },\n  ],\n}\n\nconst AppShell4 = (props: AppShell4Props) => {\n  const {\n    children,\n    description,\n    links,\n    notificationCount,\n    onNotificationsClick = () => {},\n    onSearch = () => {},\n    onSignOut = () => {},\n    pathname,\n    title,\n    user,\n    userLinks,\n  } = props\n\n  return (\n    <div className='flex min-h-svh w-full flex-col'>\n      <header className='bg-background sticky top-0 z-10 border-b'>\n        <div className='flex h-14 items-center gap-2 px-4 md:px-6'>\n          <Link href='/' className='flex items-center gap-2 text-sm font-medium'>\n            <BrandMark>\n              <IconPlaceholder\n                lucide='BlocksIcon'\n                tabler='IconCube'\n                hugeicons='CubeIcon'\n                phosphor='CubeIcon'\n                remixicon='RiBox3Line'\n              />\n            </BrandMark>\n            <span className='max-sm:sr-only'>Orbit</span>\n          </Link>\n          <div className='ml-auto flex items-center gap-2'>\n            <SearchButton onOpen={onSearch} />\n            <NotificationsButton\n              count={notificationCount}\n              onClick={onNotificationsClick}\n            />\n            <UserMenu links={userLinks} onSignOut={onSignOut} user={user} />\n          </div>\n        </div>\n        <TopNav className='px-2 md:px-4' items={links} pathname={pathname} />\n      </header>\n      <main className='flex flex-1 flex-col gap-6 p-4 md:p-6'>\n        <div className='flex flex-col gap-0.5'>\n          <h1 className='text-2xl font-semibold tracking-tight'>{title}</h1>\n          {description && (\n            <p className='text-muted-foreground text-sm text-pretty'>{description}</p>\n          )}\n        </div>\n        {children ?? <PagePlaceholder />}\n      </main>\n    </div>\n  )\n}\n\nconst PLACEHOLDER_ROWS = ['w-1/3', 'w-2/5', 'w-1/4', 'w-1/3', 'w-2/5']\n\nfunction PagePlaceholder() {\n  return (\n    <div className='flex flex-col border-t'>\n      {PLACEHOLDER_ROWS.map((width, index) => (\n        <div key={index} className='flex items-center gap-4 border-b py-3.5'>\n          <div className='bg-muted size-2 shrink-0 rounded-full' />\n          <div className={cn('bg-muted h-3.5 rounded-sm', width)} />\n          <div className='bg-muted/60 ms-auto h-3.5 w-20 rounded-sm' />\n        </div>\n      ))}\n    </div>\n  )\n}\n\nexport { AppShell4, exampleProps as appShell4ExampleProps, type AppShell4Props }\n",
      "type": "registry:component",
      "target": "@components/dashboardblocks/app-shell/app-shell-04.tsx"
    }
  ],
  "meta": {
    "shows": "An app shell with no sidebar: page links sit under the top bar and scroll sideways on small screens.",
    "size": "page",
    "usedWith": [
      "app-shell-01"
    ],
    "component": "AppShell4",
    "props": "{ children?: ReactNode; description?: string; links: { badge?: ReactNode; href: string; icon?: ReactNode; title: string }[]; notificationCount: number; onNotificationsClick?: () => void; onSearch?: () => void; onSignOut?: () => void; pathname: string; title: string; user: { avatar?: string; email: string; name: string }; userLinks: { href: string; icon: ReactNode; label: string }[] }"
  },
  "type": "registry:component"
}
