"use client"; import { Button } from "@/components/retroui/Button"; import { Input } from "@/components/retroui/Input"; import { Text } from "@/components/retroui/Text"; import { Mail, TwitterIcon } from "lucide-react"; import { useState } from "react"; import { subscribeToNewsletter } from "@/app/actions/newsletter"; const quickLinks = [ { name: "Docs", href: "/docs" }, { name: "Blogs", href: "/blogs" }, { name: "Community", href: "https://discord.com/invite/Jum3NJxK6Q" }, { name: "Pro Blocks", href: "https://pro.retroui.dev" }, ]; const projectLinks = [ { name: "CommerCN", href: "https://commercn.com" }, { name: "Evendeals", href: "https://evendeals.com" }, { name: "Tanstack Starter Kit", href: "https://tanstackstarterkit.com" }, ]; function Footer() { const [email, setEmail] = useState(""); const [status, setStatus] = useState<"idle" | "loading" | "success" | "error">("idle"); const handleSubscribe = async (e: React.FormEvent) => { e.preventDefault(); setStatus("loading"); const result = await subscribeToNewsletter(email); if (result.success) { setStatus("success"); setEmail(""); } else { setStatus("error"); } }; return ( ); } export default Footer;