import { AnimatePresence, cubicBezier, motion } from 'framer-motion'; interface SendButtonProps { show: boolean; isStreaming?: boolean; onClick?: (event: React.MouseEvent) => void; } const customEasingFn = cubicBezier(0.4, 0, 0.2, 1); export function SendButton({ show, isStreaming, onClick }: SendButtonProps) { return ( {show ? ( { event.preventDefault(); onClick?.(event); }} >
{!isStreaming ?
:
}
) : null}
); }