'use client' import type { ReactNode } from 'react' import AdminSidebar from './AdminSidebar' type AdminShellProps = { title: string subtitle?: string actions?: ReactNode rail?: ReactNode children: ReactNode } export default function AdminShell({ title, subtitle, actions, rail, children }: AdminShellProps) { const hasRail = Boolean(rail) return (

{title}

{subtitle &&

{subtitle}

}
{actions}
{children}
{hasRail ? : null}
) }