www/actions/contact.ts
Xe Iaso d85a29c15d
fix contact form
Signed-off-by: Xe Iaso <me@xeiaso.net>
2024-09-20 13:59:31 -04:00

10 lines
242 B
TypeScript

"use server";
export default async function contactForm(formData: FormData) {
const rawFormData = {
name: formData.get('name'),
email: formData.get('email'),
message: formData.get('message'),
};
console.log(rawFormData);
};