);}function Gallery() {
let location = useLocation();
return (
{IMAGES.map(i => (
{i.title}
))}
);}function ImageView() {
let { id } = useParams();
let image = IMAGES[parseInt(id, 10)];
if (!image) return
Image not found
;
return (
{image.title}
);}function Modal() {
let history = useHistory();
let { id } = useParams();
let image = IMAGES[parseInt(id, 10)];
if (!image) return null;
let back = e => {
e.stopPropagation();
history.goBack();
};
return (