export function usePublicLead() {
  const config = useRuntimeConfig()

  async function submitLead(payload) {
    const response = await $fetch(`${config.public.apiBaseUrl}/public-leads`, {
      method: 'POST',
      body: payload,
    })

    return response?.data || {}
  }

  return {
    submitLead,
  }
}
