"use client"; import { useEffect, useState } from "react"; import { motion } from "framer-motion"; import Image from "next/image"; export function FloatingDonateButton() { const [shake, setShake] = useState(false); useEffect(() => { // Primeira animação após 5 segundos const initialTimer = setTimeout(() => { setShake(true); setTimeout(() => setShake(false), 1000); }, 5000); // Animação repetida a cada 30 segundos const interval = setInterval(() => { setShake(true); setTimeout(() => setShake(false), 1000); }, 30000); return () => { clearTimeout(initialTimer); clearInterval(interval); }; }, []); return ( Buy Me a Coffee ); }