import React from 'react'; import type { ReactNode } from 'react'; import { motion } from 'framer-motion'; import { theme } from '../theme'; export interface TaskTab { id: string; label: string; badge?: ReactNode; } interface TaskHeaderProps { title: string; subtitle?: string; tabs: TaskTab[]; activeTab: string; onTabChange: (tabId: string) => void; } /** * Header for the Tasks screen: renders hero copy plus animated pill tabs. */ const TaskHeader: React.FC = ({ title, subtitle, tabs, activeTab, onTabChange }) => { return (

{title}

{subtitle && (

{subtitle}

)}
{tabs.map((tab) => { const isActive = tab.id === activeTab; return ( ); })}
); }; export default TaskHeader;