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
920 B
TypeScript
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;
|