import { Typography } from '@mui/material' import { useTheme } from '@mui/material/styles' import React, { ReactNode } from 'react' import { BaseErrorBoundary } from './base-error-boundary' 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 = useTheme() const isDark = theme.palette.mode === 'dark' return (
{title} {header}
{children}
) }