import { customComponents } from '@agent/lib/markdown'; import { AnimatePresence, motion } from 'framer-motion'; import ReactMarkdown from 'react-markdown'; export const AnimateChunks = ({ words, delay = 0.4, duration = 0.25 }) => { const isChars = words.every((word) => word.length === 1); return ( {words.map((word, i) => ( {isChars ? ( word ) : ( {word} )} ))} ); };