import type { ReactNode } from "react"; import type { VirtualPageSection } from "./VirtualPage"; import { VirtualPage } from "./VirtualPage"; import styles from "./PageContent.module.scss"; export function PageContent({ title, sections, contentClassName, fixed = false }: { title?: ReactNode; sections: VirtualPageSection[]; contentClassName?: string; fixed?: boolean }) { return
{fixed && title != null &&
{title}
} {fixed ?
{sections.map((section) =>
{section.content}
)}
: }
; }