import NextImage, { ImageProps as NextImageProps } from 'next/image'; import { useState } from 'react'; import clsxm from '~/libs/clsxm'; type ImageProps = { rounded?: string; } & NextImageProps; const Image = (props: ImageProps) => { const { alt, src, className, rounded, ...rest } = props; const [isLoading, setLoading] = useState(true); return ( setLoading(false)} unoptimized {...rest} /> ); }; export default Image;