import { Button } from '@/ui/components/ui/button' import { m } from '@/ui/paraglide/messages.js' import { Users, User, Plus, Target, X } from 'lucide-react' import { type KanbanGoalInfo, UNASSIGNED_GOAL_ID } from '@shumai/dtos' interface KanbanHeaderProps { scope: 'team' | 'my' onScopeChange: (scope: 'team' | 'my') => void selectedGoal: KanbanGoalInfo | null onClearGoal: () => void onCreateTask: () => void canCreateTask?: boolean } export function KanbanHeader({ scope, onScopeChange, selectedGoal, onClearGoal, onCreateTask, canCreateTask = true, }: KanbanHeaderProps) { return (
{/* Left side: Scope switcher & Goal indicator */}
{/* Scope Toggle (Team vs My Tasks) */}
{/* Selected Goal Filter Badge */} {selectedGoal && (
{selectedGoal.id === UNASSIGNED_GOAL_ID ? m.unassigned() : selectedGoal.title}
)}
{/* Right side: Create button */} {canCreateTask && (
{/* Create Task Button */}
)}
) }