e8fa1ce4ea
Dark muted surfaces missed WCAG AA; action and tertiary tokens plus a 32-pair contract close that. Hit targets, remaining-count, and Enter-to-send follow the interaction audit without changing visual sizes. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
394 B
TypeScript
10 lines
394 B
TypeScript
"use client";
|
|
|
|
import { CharacterRemaining } from "@/components/character-remaining";
|
|
import { composerRemainingId, useComposerDraft } from "@/components/chat-composer";
|
|
|
|
export function ComposerCharacterRemaining({ maxLength }: { maxLength: number }) {
|
|
const draft = useComposerDraft();
|
|
return <CharacterRemaining id={composerRemainingId} length={draft.length} maxLength={maxLength} />;
|
|
}
|