import Img, { StaticImageData } from 'next/image'

type ImageProps = {
  src: string | StaticImageData,
  width?: number,
  height?: number,
  alt?: string,
}

export const Image = ({src, width, height, alt}: ImageProps) => {
  return (
    <Img
      style={{borderRadius: "13px"}}
      src={src}
      width={width}
      height={height}
      alt={alt || ""}
    />
  )
}
