"use client"

import Link from "@/components/common/versioned-link"

interface LiveNotificationProps {
    enable: boolean,
}

export default function LiveNotification({ enable }: LiveNotificationProps) {
    return enable ? (
        <Link
            href="/live"
            className="
                w-full
                bg-red-600
                bg-gradient-to-r
                from-red-500
                to-sienna
                text-white
                p-4
                rounded-2xl
                flex items-center justify-center
                font-bold shadow-md"
        >
            <div className="flex items-center">
                <span className="animate-livepulse px-2 py-0.5 bg-white text-red-500 rounded text-xs font-bold">
                    LIVE
                </span>
                <span className="mr-2">
                لایو در حال پخش — اکنون وارد شوید
                </span>
            </div>
        </Link>
    ) : null
}