noogle/components/image/image.tsx
2022-11-26 10:36:08 +01:00

11 lines
285 B
TypeScript

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} />;
}