"use client"; import { useEffect, useState } from "react"; import { X, Coffee } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; export function SupportPopup() { const [isVisible, setIsVisible] = useState(false); useEffect(() => { const hasSeenPopup = localStorage.getItem("hasSeenSupportPopup"); const lastShown = localStorage.getItem("lastSupportPopupShown"); const now = Date.now(); // Show if never seen or if it's been more than 7 days if (!hasSeenPopup || (lastShown && now - parseInt(lastShown) > 7 * 24 * 60 * 60 * 1000)) { setTimeout(() => setIsVisible(true), 3000); // Show after 3 seconds } }, []); const handleClose = (dontShowAgain?: boolean) => { setIsVisible(false); if (dontShowAgain) { localStorage.setItem("hasSeenSupportPopup", "true"); } localStorage.setItem("lastSupportPopupShown", Date.now().toString()); }; if (!isVisible) return null; return (
Support AutoLoop
Help us keep this platform running and improving

AutoLoop is built with ❤️ to help you automate your outreach. Your support helps us:

  • ✅ Keep servers running 24/7
  • ✅ Add new features regularly
  • ✅ Provide free updates
  • ✅ Maintain and improve the platform
); }