import { OwnerShell } from '@/components/owner/owner-shell';
import { requireOwnerOrRedirect } from '@/lib/owner-auth';

export default async function OwnerLayout({ children }: { children: React.ReactNode }) {
  const session = await requireOwnerOrRedirect('VIEWER');
  return <OwnerShell user={session.user}>{children}</OwnerShell>;
}
