import React from "react"; import { Typography } from "@mui/material"; import BaseErrorBoundary from "./base-error-boundary"; interface Props { title?: React.ReactNode; // the page title header?: React.ReactNode; // something behind title contentStyle?: React.CSSProperties; } const BasePage: React.FC = (props) => { const { title, header, contentStyle, children } = props; return (
{title} {header}
{children}
); }; export default BasePage;