import * as React from 'react'; import { Box, Button, TextArea, Flex } from '@radix-ui/themes'; interface Props { value: string; onChange: (v: string) => void; onSend: (text: string) => void; } export function ChatComposer({ value, onChange, onSend }: Props): React.JSX.Element { const handleSend = React.useCallback(() => { const text = value.trim(); if (!text) return; onSend(text); }, [onSend, value]); return (