"use client"; import React, { useState } from "react"; import contactForm from "@/actions/contact"; export default function ContactForm() { const [message, setMessage] = useState(null); const callback = async (formData: FormData) => { await contactForm(formData); setMessage( "Our intrepid team of code monkeys will be looking at this as soon as possible!" ); }; return ( <>
{message !== null && ( <>

Thanks!

{message}

)}
); }