import { Typography } from "poyraz-ui/atoms"; import type { ReactNode } from "react"; type PageHeaderProps = { title: string; description?: string; eyebrow?: string; primaryAction?: ReactNode; secondaryActions?: ReactNode; }; export function PageHeader({ title, description, eyebrow, primaryAction, secondaryActions, }: PageHeaderProps) { return (
{eyebrow ? ( {eyebrow} ) : null} {title} {description ? ( {description} ) : null}
{primaryAction || secondaryActions ? (
{secondaryActions} {primaryAction}
) : null}
); }