turash/bugulma/frontend/pages/PrivacyPage.tsx
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- 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.
2025-11-25 06:02:57 +01:00

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;