import React from 'react'; import { ArrowLeft } from 'lucide-react'; import Button from '@/components/ui/Button.tsx'; import { Heading, Text } from '@/components/ui/Typography.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 (
{onBack && ( )}
{title} {subtitle && ( {subtitle} )}
{children &&
{children}
}
); }; export default PageHeader;