import { API_BASE_URI } from './apiBaseUrl'; import { LeadServiceFetch } from './LeadServiceAPI'; export type UserSurveyRequest = { rate: number; reason?: string; message?: string; url: string; type: string; ip: string; }; export const sendUserSurvey = async (body: UserSurveyRequest) => { try { const response = await LeadServiceFetch(`${API_BASE_URI}/survey`, body); return response; } catch (e) { return null; } };