import type { GetServerSideProps, NextPage } from "next"; import Head from "next/head"; import { useTranslation } from "~/providers/I18nProvider"; import type { TestiEStringheStingaId } from "~/schemas/public/TestiEStringhe"; import { generateSSGHelper } from "~/server/utils/ssgHelper"; import { api } from "~/utils/api"; const PrivacyPolicy: NextPage = () => { const { t, locale } = useTranslation(); const key = ( locale === "en" ? "PRIVACY_POLICY_ENG" : "PRIVACY_POLICY" ) as TestiEStringheStingaId; const { data } = api.settings.getStringa.useQuery({ stringaId: key, }); return ( <>