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