import { FunctionComponent, ReactNode } from 'react';
import PageHeader from '../common/PageHeader';

export interface AdminPageHeaderProps {
  /** Already-translated title (i18n is the caller's job — labels are keys). */
  title: string;
  /** Optional already-translated subtitle. */
  subtitle?: string;
  /** Optional action node (a button / filter) rendered end-aligned on desktop, wrapping on mobile. */
  actions?: ReactNode;
}

/**
 * Thin admin-scoped alias of the shared `PageHeader` — kept so existing backoffice call sites don't need
 * a mechanical import rename. New code (admin or otherwise) should import `PageHeader` from `@/components`.
 * @component AdminPageHeader
 */
const AdminPageHeader: FunctionComponent<AdminPageHeaderProps> = (props) => <PageHeader {...props} />;

export default AdminPageHeader;
