import type { ReactNode } from 'react'; import styles from './PageViewLayout.module.scss'; type Props = { children?: ReactNode, headerContents?: ReactNode, sideContents?: ReactNode, footerContents?: ReactNode, } export const PageViewLayout = (props: Props): JSX.Element => { const { children, headerContents, sideContents, footerContents, } = props; return ( <>
{ headerContents != null && headerContents } { sideContents != null ? (
{children}
{sideContents}
) : ( <>{children} ) }
{ footerContents != null && ( ) } ); };