"use client"; import { PageHeader } from "components/PageHeader"; import { MobileNavigation } from "../ActionBar/MobileNavigation"; import { usePreserveScroll } from "src/hooks/usePreserveScroll"; export function DashboardPageLayout(props: { scrollKey: string; pageTitle: string; mobileActions?: React.ReactNode; controls?: React.ReactNode; hasSearch?: boolean; publication?: string; showHeader?: boolean; children: React.ReactNode; }) { let { ref } = usePreserveScroll(props.scrollKey); return (
{props.showHeader && (
{props.controls}
)} {props.children}
); }