Felix Zieger
input validation
e9a2815
raw
history blame
480 Bytes
import { motion } from "framer-motion";
interface SentenceDisplayProps {
sentence: string[];
}
export const SentenceDisplay = ({ sentence }: SentenceDisplayProps) => {
if (!sentence.length) return null;
return (
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
className="mb-4 text-left p-3 rounded-lg bg-gray-50"
>
<p className="text-gray-700">
{sentence.join(" ")}
</p>
</motion.div>
);
};