import type { ReactNode } from 'react'; /** Presentational component only: native mic, capture and agents are wired separately. */ export type AssistantState = 'idle' | 'listening' | 'processing' | 'muted'; export type AssistantPillProps = { state: AssistantState; onPrimaryAction: () => void; onOpen: () => void; assetBase?: string; shortcutLabel?: string; children?: ReactNode; }; const statuses: Record = { idle: 'Microphone off', listening: 'Microphone listening', processing: 'Processing request', muted: 'Microphone muted', }; export function AssistantPill({ state, onPrimaryAction, onOpen, assetBase = '/openclicky-assets', shortcutLabel = 'Configure shortcut', children, }: AssistantPillProps) { return (
{statuses[state]} {children} {shortcutLabel}
); }