React Image Lightbox Typescript Error Codesandbox

React Image Lightbox Typescript Error Codesandbox