"use client"; import { X } from "lucide-react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; interface Banner5Props { title: string; description: string; buttonText: string; buttonUrl: string; defaultVisible?: boolean; className?: string; } const Banner5 = ({ title = "نسخه ۲.۰ منتشر شد", description = "قابلیت‌ها و امکانات جدید را بررسی کنید", buttonText = "اطلاعات بیشتر", buttonUrl = "https://ShadcnBlocks", defaultVisible = true, className, }: Banner5Props) => { const [isVisible, setIsVisible] = useState(defaultVisible); const handleClose = () => { setIsVisible(false); }; if (!isVisible) return null; return (

{title}

{description}

); }; export { Banner5 };