export const fetchJson = async (url: string, options?: RequestInit) => { const response = await fetch(url, options); if (!response.ok) { const errorJson = await response.json(); throw errorJson; } return response.json(); }; __ __