turash/bugulma/frontend/components/layout/StaticPageLayout.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
920 B
TypeScript

import React from 'react';
import { useTranslation } from '@/hooks/useI18n.tsx';
import Button from '@/components/ui/Button.tsx';
import { ArrowLeft } from 'lucide-react';
interface StaticPageLayoutProps {
onNavigateBack: () => void;
title: string;
children?: React.ReactNode;
}
const StaticPageLayout = ({ onNavigateBack, title, children }: StaticPageLayoutProps) => {
const { t } = useTranslation();
return (
<div className="mx-auto max-w-4xl px-4 py-16 sm:py-24">
<Button
variant="ghost"
onClick={onNavigateBack}
className="mb-8 -ml-4 text-base text-muted-foreground hover:text-foreground"
>
<ArrowLeft className="h-4 mr-2 text-current w-4" />
{t('organizationPage.navigateBack')}
</Button>
<div className="prose max-w-none">
<h1>{title}</h1>
{children}
</div>
</div>
);
};
export default StaticPageLayout;