import React from 'react' import { Box, Group, Stack, Text, Title } from '@mantine/core' export interface PageHeaderProps { /** Page title. Pass an i18n string from the app (m.foo()). */ title: React.ReactNode /** Optional one-line description under the title. */ description?: React.ReactNode /** Right-aligned actions (buttons, menus). */ actions?: React.ReactNode } // The single shared page header every screen uses: a title, optional // description, and a right-aligned action slot. Keeps headers consistent across // pages — compose it, don't hand-roll a per-page header. export function PageHeader({ title, description, actions }: PageHeaderProps) { return ( {title} {description ? ( {description} ) : null} {actions ? {actions} : null} ) }