{screenshot !== undefined ? (
{
const blob = convertB64toBlob(screenshot)
const blobUrl = URL.createObjectURL(blob)
window.open(blobUrl, '_blank')
}}
className="cursor-pointer rounded h-[26px] w-[30px] border border-control relative bg-cover bg-center bg-no-repeat"
>
) : (
{
if (uploadButtonRef.current) (uploadButtonRef.current as any).click()
}}
>
Upload screenshot
captureScreenshot()}
>
Capture screenshot
)}