const btnClickVideo = async (Videourl:any) => {
console.log("video Onclicked",Videourl)
const resp = await VideoApi.getVideo(Videourl);
console.log("clicked in video")
console.log("video resp", resp);
};
<button title="Click" type="button" onClick={() => btnClickVideo(response.link)} > <video width="150" height="150" controls >
this the code where a try to get resp