File size: 469 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
/* eslint-disable jsx-a11y/alt-text */
import { Box } from "@chakra-ui/react"
import Image, { type ImageProps } from "next/image"
export const Img = (props: ImageProps) => {
const { height, ...rest } = props
return (
<Box
height={height}
css={{
position: "relative",
marginTop: "1.7em",
marginBottom: "1.7em",
borderRadius: "lg",
boxShadow: "inset",
}}
>
<Image {...rest} />
</Box>
)
}
|