'use server'

import { API_URL } from "@/utils/constants/selectConstants";
import { TOKEN } from "@/utils/constants/serverConstants";

export async function enviarLeadLpCaixa(formData: unknown) {
    const response = await fetch(`${API_URL}Leads/NovoLeadSite/`, {
        method: 'POST',
        headers: {
            Authorization: TOKEN,
            'Content-Type': 'application/json'
        },
        body: JSON.stringify(formData)
    });

    return await response.json();
}
