import { ReactNode } from 'react'; /** * ViewHeader Component * * Compact page header that sits naturally alongside the sidebar. * Clean, minimal design with optional icon, subtitle, badge, and actions. * * @component * @layer Presentation */ interface ViewHeaderProps { title: string | ReactNode; subtitle?: string; icon?: ReactNode; actions?: ReactNode; rightContent?: ReactNode; breadcrumbs?: ReactNode; gradient?: boolean; badge?: string; badgeColor?: 'blue' | 'green' | 'purple' | 'orange' | 'gray'; className?: string; } const badgeColors = { blue: 'bg-blue-50 text-blue-700 ring-blue-600/20', green: 'bg-green-50 text-green-700 ring-green-600/20', purple: 'bg-purple-50 text-purple-700 ring-purple-600/20', orange: 'bg-orange-50 text-orange-700 ring-orange-600/20', gray: 'bg-gray-50 text-gray-600 ring-gray-500/20', }; export function ViewHeader({ title, subtitle, icon, actions, rightContent, breadcrumbs, badge, badgeColor = 'blue', className = '', }: ViewHeaderProps) { const rightSideContent = rightContent || actions; return (
{subtitle}
)}