import type { ReactNode } from "react";
import type { PreviewRole } from "@/lib/preview";
import { PreviewProvider } from "./preview-context";
import { DashboardShell } from "./dashboard-shell";
export function DashboardPage({
  role,
  children,
}: {
  role: PreviewRole;
  children: ReactNode;
}) {
  return (
    <PreviewProvider role={role}>
      <DashboardShell>{children}</DashboardShell>
    </PreviewProvider>
  );
}
