* Update Next.js and React versions in all packages * Replace onRedirect function with next/link in BillingSessionStatus, since it's no longer cached by default * Remove unused revalidatePath import in billing return page, since it's no longer cached by default * Add Turbopack module aliases to improve development server speed * Converted new Dynamic APIs to be Promise-based * Adjust mobile layout * Use ENABLE_REACT_COMPILER to enable the React Compiler in Next.js 15 * Report Errors using the new onRequestError hook
31 lines
777 B
TypeScript
31 lines
777 B
TypeScript
import { SitePageHeader } from '~/(marketing)/_components/site-page-header';
|
|
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
|
|
import { withI18n } from '~/lib/i18n/with-i18n';
|
|
|
|
export async function generateMetadata() {
|
|
const { t } = await createI18nServerInstance();
|
|
|
|
return {
|
|
title: t('marketing:termsOfService'),
|
|
};
|
|
}
|
|
|
|
async function TermsOfServicePage() {
|
|
const { t } = await createI18nServerInstance();
|
|
|
|
return (
|
|
<div>
|
|
<SitePageHeader
|
|
title={t(`marketing:termsOfService`)}
|
|
subtitle={t(`marketing:termsOfServiceDescription`)}
|
|
/>
|
|
|
|
<div className={'container mx-auto py-8'}>
|
|
<div>Your terms of service content here</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default withI18n(TermsOfServicePage);
|