27 lines
729 B
JavaScript
27 lines
729 B
JavaScript
import Link from "next/link";
|
|
import { useRouter } from "next/router";
|
|
import useTranslation from "next-translate/useTranslation";
|
|
import TandCEN from "./footerDocs/tandc_en";
|
|
import TandCCY from "./footerDocs/tandc_cy";
|
|
|
|
const TermsAndConditionsStatement = (props) => {
|
|
let { t } = useTranslation();
|
|
|
|
const { whichError } = props;
|
|
|
|
const router = useRouter();
|
|
const { locale } = router;
|
|
|
|
return (
|
|
<main
|
|
className="govuk-main-wrapper govuk-!-padding-top-9 govuk-main-wrapper--auto-spacing"
|
|
id="main-content"
|
|
role="main"
|
|
>
|
|
{router.locale != "en" ? <TandCCY /> : <TandCEN />}
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default TermsAndConditionsStatement;
|