import type { ReactNode } from "react";
import { DashboardNav } from "@/components/DashboardNav";
import { LegalFooter } from "@/components/LegalFooter";

type Props = {
  channelTitle?: string | null;
  children: ReactNode;
};

export function DashboardShell({ channelTitle, children }: Props) {
  return (
    <main className="flex min-h-screen flex-col">
      <DashboardNav channelTitle={channelTitle} />
      <div className="flex-1">{children}</div>
      <LegalFooter />
    </main>
  );
}
