File size: 480 Bytes
e9a2815
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>
  );
};