"use client"; import React, { useState, useEffect, useRef } from "react"; import Typed from "typed.js"; const AnimatedText: React.FC = () => { const el = useRef(null); useEffect(() => { const options = { strings: [ 'with interactive storytelling', 'for language learning', 'for bedtime stories', 'with educational adventures', 'for vocabulary building', 'as a reading companion', ], typeSpeed: 70, // Slightly faster backSpeed: 30, // Add some backspeed for playfulness backDelay: 800, // Shorter delay cursorChar: '🪄', // Child-friendly cursor fadeOut: true, fadeOutDelay: 1, loop: true, }; const typed = new Typed(el.current, options); return () => { typed.destroy(); }; }, []); return (

); }; export default AnimatedText;