"use client"; // import { addEmail } from "@/app/actions/addEmail"; import { toast } from "@/components/ui/toaster"; import { useRef } from "react"; import { useFormStatus } from "react-dom"; import { Loading } from "./loading"; import { Button } from "../ui/button"; function ArrowIcon(props: any) { return ( ); } const SubmitButton = () => { const { pending } = useFormStatus(); return ( ); }; export function NewsletterForm() { const formRef = useRef(null); return (
{ // const test = await addEmail(formData); // formRef.current?.reset(); // if (test.success) { // toast.success("Thanks for signing up!"); // } else { // toast.error("Something went wrong, please try again later."); // } toast.success("Thanks for signing up!"); }} >

Sign up for our newsletter

Subscribe to get the latest Unkey news

); }