import React from 'react' import { Box, BoxProps, Container, Divider, Typography } from '@mui/material' import { Footer, Toolbar } from 'components/molecules/index.js' interface PageProps extends BoxProps { showCookieConsent?: boolean } /** * React function component that implements the default page template. * @see BoxProps from '@mui/material' for props */ const Page: React.FC = ({ title, children, showCookieConsent, ...props }) => { React.useEffect(() => { if (title) { document.title = `Compagnia d'Arme del Santo Luca - ${title}` } }, [title]) return ( {title && ( <> {title} ({ borderColor: 'primary.main', borderStyle: 'solid', borderWidth: 2, mx: 'auto', mb: 4, maxWidth: 'calc(60% - 2.5em)', [theme.breakpoints.up('md')]: { width: theme => theme.breakpoints.values.sm, }, [theme.breakpoints.down('sm')]: { maxWidth: '75vw', }, })} /> )} theme.breakpoints.values.lg, ...props.sx, }}> {children}