'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; onNextActionable: () => void; nextActionableFeedback?: string | null; } export function KanbanControls({ filters, stats, onFiltersChange, onNextActionable, nextActionableFeedback = null, }: KanbanControlsProps) { const inputClass = 'ui-field rounded-xl px-3 py-2.5 text-sm outline-none transition'; 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'} /> {nextActionableFeedback ?

{nextActionableFeedback}

: null}
); }