import { ImageUrl } from "@/lib/interfaces";
import { deleteData, getData, postData, putData } from "@/services/api";

export const useSampleImage = async () =>  {
    const url = '/blobsampleimage';
    const response = await getData<ImageUrl>(url);
    if(!response) {
        throw new Error("An error occured while fetching the sample image data");
    }
    return response;
}