import { GetStaticProps } from "next"; import { AppLayout, AppLayoutRequired } from "components/AppLayout"; import { Icon } from "components/Ico"; import { NavOption } from "components/PanelComponents/NavOption"; import { PanelHeader } from "components/PanelComponents/PanelHeader"; import { SubPanel } from "components/Containers/SubPanel"; import { getOpenGraph } from "helpers/openGraph"; import { HorizontalLine } from "components/HorizontalLine"; import { getLangui } from "graphql/fetchLocalData"; import { atoms } from "contexts/atoms"; import { useAtomGetter } from "helpers/atoms"; /* * ╭────────╮ * ──────────────────────────────────────────╯ PAGE ╰───────────────────────────────────────────── */ interface Props extends AppLayoutRequired {} const AboutUs = (props: Props): JSX.Element => { const langui = useAtomGetter(atoms.localData.langui); return ( } {...props} /> ); }; export default AboutUs; /* * ╭──────────────────────╮ * ───────────────────────────────────╯ NEXT DATA FETCHING ╰────────────────────────────────────── */ export const getStaticProps: GetStaticProps = (context) => { const langui = getLangui(context.locale); const props: Props = { openGraph: getOpenGraph(langui, langui.about_us ?? "About us"), }; return { props: props, }; };