turash/bugulma/frontend/components/layout/PageHeader.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

44 lines
1.2 KiB
TypeScript

import React from 'react';
import { ArrowLeft } from 'lucide-react';
import Button from '@/components/ui/Button.tsx';
import { useTranslation } from '@/hooks/useI18n.tsx';
interface PageHeaderProps {
title: string;
subtitle?: string;
onBack?: () => void;
children?: React.ReactNode;
}
const PageHeader = ({ title, subtitle, onBack, children }: PageHeaderProps) => {
const { t } = useTranslation();
return (
<header className="mb-8">
{onBack && (
<Button
variant="ghost"
onClick={onBack}
className="mb-4 -ml-4 text-muted-foreground hover:text-foreground"
>
<ArrowLeft className="h-4 mr-2 text-current w-4" />
{t('organizationPage.navigateBack')}
</Button>
)}
<div className="flex items-center justify-between">
<div>
<h1 className="font-serif text-2xl sm:text-3xl font-bold tracking-tight text-foreground">
{title}
</h1>
{subtitle && (
<p className="mt-1 text-base sm:text-lg text-muted-foreground">{subtitle}</p>
)}
</div>
{children && <div className="flex items-center space-x-2">{children}</div>}
</div>
</header>
);
};
export default PageHeader;