import { API_BASE_URI } from './apiBaseUrl'; export const checkPartner = async (partnerId: string) => { try { const response = await fetch(`${API_BASE_URI}/partnerchecking?partnerId=${partnerId}`, { headers: { 'Content-Type': 'application/json' }, mode: 'cors', }).then(async (res) => { if (!res.ok) { throw new Error(`Ошибка HTTP: ${res.status}`); } return await res.text(); }); return response; } catch (e) { return null; } };