import React, { ReactNode } from "react"; import { Typography } from "@mui/material"; import { BaseErrorBoundary } from "./base-error-boundary"; import { useCustomTheme } from "@/components/layout/use-custom-theme"; interface Props { title?: React.ReactNode; // the page title header?: React.ReactNode; // something behind title contentStyle?: React.CSSProperties; children?: ReactNode; full?: boolean; } export const BasePage: React.FC = (props) => { const { title, header, contentStyle, full, children } = props; const { theme } = useCustomTheme(); const isDark = theme.palette.mode === "dark"; return (
{title} {header}
{children}
); };