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.
31 lines
772 B
TypeScript
31 lines
772 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:privacyPolicy'),
|
|
};
|
|
}
|
|
|
|
async function PrivacyPolicyPage() {
|
|
const { t } = await createI18nServerInstance();
|
|
|
|
return (
|
|
<div>
|
|
<SitePageHeader
|
|
title={t('marketing:privacyPolicy')}
|
|
subtitle={t('marketing:privacyPolicyDescription')}
|
|
/>
|
|
|
|
<div className={'container mx-auto py-8'}>
|
|
<div>Your terms of service content here</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default withI18n(PrivacyPolicyPage);
|