import React from 'react'; import { Link } from 'react-router-dom'; import { ChevronLeftIcon } from '@heroicons/react/24/outline'; interface Crumb { label: string; to?: string; } interface Props { title: string; breadcrumbs?: Crumb[]; action?: React.ReactNode; description?: string; } export default function PageHeader({ title, breadcrumbs, action, description }: Props) { return (
{breadcrumbs && breadcrumbs.length > 0 && ( )}

{title}

{description && (

{description}

)}
{action &&
{action}
}
); }