noogle/website/components/image/image.tsx

11 lines
285 B
TypeScript
Raw Normal View History

2022-11-26 12:36:08 +03:00
import NextImage, { ImageLoaderProps, ImageProps } from "next/image";
// opt-out of image optimization, no-op
const customLoader = ({ src }: ImageLoaderProps) => {
return src;
};
export function Image(props: ImageProps) {
return <NextImage {...props} loader={customLoader} />;
}