// Copyright: © 2026 TWWIM UG. All rights reserved. (www.twwim.com) /** * PhraseAddBox — trailing text input + [Add] button used to append phrases. * * Stateless on the draft itself — the parent owns the draft string so the * outer editor can clear it after a successful add. * * @layer Presentation */ import { Plus } from 'lucide-react'; interface PhraseAddBoxProps { draft: string; setDraft: (value: string) => void; onAdd: () => void; atLimit: boolean; canAdd: boolean; maxChars: number; addPlaceholder?: string; addLabel: string; } export function PhraseAddBox({ draft, setDraft, onAdd, atLimit, canAdd, maxChars, addPlaceholder, addLabel, }: PhraseAddBoxProps) { return (