diff --git a/pages/_app.tsx b/pages/_app.tsx index 1ece4a77..37d7cbc1 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,10 +1,26 @@ import "../styles/globals.css"; import type { AppProps } from "next/app"; import { Layout } from "@components"; +import { + footerBodySection, + footerBottomSection, + footerPartnerSection, + footerTopSection, + headerBody, + headerNav, +} from "@config"; function MyApp({ Component, pageProps }: AppProps) { return ( - + ); diff --git a/src/components/layout.tsx b/src/components/layout.tsx index f63568c2..809a0ad9 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -1,29 +1,21 @@ import { Footer, Header } from "@components"; -import { - footerBodySection, - footerBottomSection, - footerPartnerSection, - footerTopSection, - headerBody, - headerNav, -} from "@config"; + import { Container } from "@dataesr/react-dsfr"; +import { FooterProps } from "./footer/type"; +import { HeaderProps } from "./header/type"; type Props = { children: React.ReactNode; + headerProps: HeaderProps; + footerProps: FooterProps; }; const Index = (props: Props): JSX.Element => { return ( <> -
+
{props.children} -