"use client"; import { Upload } from "lucide-react"; import Link from "next/link"; import { useState } from "react"; import { Alert, AlertTitle } from "@/components/shadcn"; import { useMountEffect } from "@/hooks/use-mount-effect"; import { DOCS_URLS } from "@/lib/external-urls"; import { cn } from "@/lib/utils"; const STORAGE_KEY = "prowler:cli-import-banner-dismissed"; export const CliImportBanner = ({ className }: { className?: string }) => { const [isVisible, setIsVisible] = useState(null); useMountEffect(() => { const isDismissed = localStorage.getItem(STORAGE_KEY) === "true"; setIsVisible(!isDismissed); }); const handleClose = () => { localStorage.setItem(STORAGE_KEY, "true"); setIsVisible(false); }; if (isVisible === null || !isVisible) return null; return ( Import findings from Prowler CLI —{" "} Learn more ); };