// ✅ CORRECT export const saveResource = async ( accessToken: string | null, payload: Record ): Promise => { const response = await fetch(`${API_URL}/resource`, { method: "POST", headers: makeHeaders(accessToken || undefined), credentials: "include", body: JSON.stringify(payload), }); __ __