mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- Remove nested git repository from bugulma/frontend/.git - Add all frontend files to main repository tracking - Convert from separate frontend/backend repos to unified monorepo - Preserve all frontend code and development history as tracked files - Eliminate nested repository complexity for simpler development workflow This creates a proper monorepo structure with frontend and backend coexisting in the same repository for easier development and deployment.
34 lines
948 B
TypeScript
34 lines
948 B
TypeScript
import React from 'react';
|
|
import StaticPageScaffold from '@/components/layout/StaticPageScaffold.tsx';
|
|
import { useTranslation } from '@/hooks/useI18n.tsx';
|
|
|
|
interface PrivacySection {
|
|
title: string;
|
|
content: string;
|
|
}
|
|
|
|
const PrivacyPage = () => {
|
|
const { t, t_raw } = useTranslation();
|
|
|
|
// The translation key 'privacyPage.sections' should return an array of {title, content} objects
|
|
const sections = t_raw('privacyPage.sections') as PrivacySection[];
|
|
|
|
return (
|
|
<StaticPageScaffold title={t('footer.links.privacy')}>
|
|
<p>
|
|
<em>{t('privacyPage.lastUpdated', { date: new Date().toLocaleDateString('ru-RU') })}</em>
|
|
</p>
|
|
|
|
{Array.isArray(sections) &&
|
|
sections.map((section, index) => (
|
|
<React.Fragment key={index}>
|
|
<h2>{section.title}</h2>
|
|
<p>{section.content}</p>
|
|
</React.Fragment>
|
|
))}
|
|
</StaticPageScaffold>
|
|
);
|
|
};
|
|
|
|
export default PrivacyPage;
|