/* eslint-disable @next/next/no-img-element */ import { useEffect, useState } from "react"; import styles from "../styles/GalleryGrid.module.scss"; import { useRouter } from "next/router"; function GalleryGrid({ images, baseURL }) { const router = useRouter(); const locale = router.locale; return (
{images.length > 0 ? images.map((image, i) => (
router.push({ search: "activeImg=" + image.id })} className="noSelect" > {locale

{locale === "en" ? image.title.en : image.title.de}

)) : ""}
); } export default GalleryGrid;