import { api } from './api'; export async function getImg(imgId: string) { if(imgId == null || imgId == '' || imgId == undefined) return null; const response = await api('get', `image/${imgId}`) if(response.status !== 200) return `Server error: ${response.status}`; return response.text(); }