Migrate to Next
This commit is contained in:
11
components/GalleryThumb.js
Normal file
11
components/GalleryThumb.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
import Image from "next/image";
|
||||
import styles from "./GalleryThumb.module.css";
|
||||
|
||||
export default function GalleryThumb({ image, label, onClick }) {
|
||||
return (
|
||||
<button className={styles.block} onClick={onClick} aria-label={label}>
|
||||
<Image src={image} layout="fill" objectFit="fill" aria-hidden="true" />
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user