The commit refactors the import paths, streamlining the file structure. Removed unused imports and shifted a few components in the modules. Also, the translation setup in the FAQ page was improved for better readability and maintainability. Placeholder content has been added to policy pages as well.
33 lines
819 B
TypeScript
33 lines
819 B
TypeScript
import { PageBody } from '@kit/ui/page';
|
|
|
|
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);
|