'use server'

export async function submitReservation(formData: FormData) {
    const rawFormData = {
        name: formData.get('name'),
        phone: formData.get('phone'),
        date: formData.get('date'),
        message: formData.get('message'),
    }

    // Simulate server-side processing
    console.log('Reservation received:', rawFormData)

    // In a real app, you would save to DB or send email here
    await new Promise(resolve => setTimeout(resolve, 1000))

    return { success: true, message: 'Reservation submitted successfully!' }
}
