import { useState } from 'react' const Lightbox = ({ cancel, children }) => { const [ box, setBox ] = useState(false) if (box) return (
setBox(false)}>
{children}
) return (
setBox(!box)} className="hover:cursor-zoom-in" >{children}
) } export default Lightbox