import { getCurrentCustomer } from '@/lib/auth'; import { sendContactMessage } from './actions'; import Turnstile from '@/components/Turnstile'; const ERROR_MESSAGES: Record = { missing: 'Name, email, and a message are required.', captcha: 'CAPTCHA verification failed — please try again.', }; export default async function ContactPage({ searchParams, }: { searchParams: { sent?: string; error?: string }; }) { const customer = await getCurrentCustomer(); const error = searchParams.error ? (ERROR_MESSAGES[searchParams.error] ?? 'Something went wrong.') : null; return (

Contact

Get in touch

Question about an order, a template, or anything else? Send us a message and we'll get back to you.

{searchParams.sent === '1' ? (
Thanks — we've got your message and will be in touch soon.
) : (
{error && (

{error}

)}