main
| 1 | "use client" |
| 2 | |
| 3 | import React from "react" |
| 4 | import Zoom from "react-medium-image-zoom" |
| 5 | import "react-medium-image-zoom/dist/styles.css" |
| 6 | |
| 7 | type ZoomImgProps = React.DetailedHTMLProps< |
| 8 | React.ImgHTMLAttributes<HTMLImageElement>, |
| 9 | HTMLImageElement |
| 10 | > |
| 11 | |
| 12 | export const ZoomImg = (props: ZoomImgProps) => { |
| 13 | return ( |
| 14 | <Zoom wrapElement="span"> |
| 15 | <img {...props} /> |
| 16 | </Zoom> |
| 17 | ) |
| 18 | } |