Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | 1x 2x 2x | import { PropsWithChildren } from 'react'
import { useTranslation } from 'next-i18next'
import AlertBlock from './AlertBlock'
import Footer from './Footer'
import Header from './Header'
export interface LayoutProps extends PropsWithChildren {}
const Layout = ({ children }: LayoutProps) => {
const { t } = useTranslation('common')
return (
<div className="flex min-h-screen flex-col">
<Header
skipToMainText={t('header.skip-to-main')}
gocLink={t('header.goc-link')}
/>
<main
role="main"
id="mainContent"
className="container mx-auto mt-5 flex-1 px-4 pb-8"
>
<AlertBlock />
{children}
</main>
<Footer
dateModifiedText={t('footer.date-modified-text')}
footerHeader={t('footer.header')}
footerLogo={{
alt: t('footer.canada-ca-alt-text'),
src: '/wmms-blk.svg',
width: 300,
height: 71,
}}
footerNavHeader={t('footer.nav-header')}
links={[
{
link: t('footer.links.social-media-url'),
linkText: t('footer.links.social-media'),
},
{
link: t('footer.links.mobile-applications-url'),
linkText: t('footer.links.mobile-applications'),
},
{
link: t('footer.links.about-canada-ca-url'),
linkText: t('footer.links.about-canada-ca'),
},
{
link: t('footer.links.terms-and-condition-url'),
linkText: t('footer.links.terms-and-condition'),
},
{
link: t('footer.links.privacy-url'),
linkText: t('footer.links.privacy'),
},
]}
/>
</div>
)
}
export default Layout
|