'use client'; import { motion } from 'framer-motion'; import type { KanbanFilterOptions, KanbanStats } from '../../lib/kanban'; import { StatPill } from '../shared/stat-pill'; interface KanbanControlsProps { filters: KanbanFilterOptions; stats: KanbanStats; onFiltersChange: (filters: KanbanFilterOptions) => void; } export function KanbanControls({ filters, stats, onFiltersChange }: KanbanControlsProps) { const inputClass = 'rounded-xl border border-border-soft bg-surface-muted/78 px-3 py-2.5 text-sm text-text-strong outline-none transition placeholder:text-text-muted focus:border-border-strong focus:ring-2 focus:ring-white/10'; return (
onFiltersChange({ ...filters, query: event.target.value })} placeholder="Search by id/title/labels" className={`${inputClass} w-full sm:min-w-[18rem] sm:flex-1`} /> 0 ? 'critical' : 'default'} />
); }