'use client'; import { useState, useEffect } from 'react'; import { X, Heart } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; export function WelcomeNotification() { const [show, setShow] = useState(false); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); // Verificar se já foi mostrado const welcomeShown = localStorage.getItem('ollahub_welcome_shown'); if (!welcomeShown) { setShow(true); // Marcar como mostrado localStorage.setItem('ollahub_welcome_shown', 'true'); // Auto-fechar após 5 segundos const timer = setTimeout(() => { setShow(false); }, 5000); return () => clearTimeout(timer); } }, []); if (!mounted || !show) { return null; } return (

Obrigado por usar o OllaHub! 🎉

Estamos felizes em tê-lo conosco. Comece a explorar e aproveite sua experiência!

); }