mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-25 15:04:30 +03:00
11 lines
285 B
TypeScript
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} />;
|
||
|
}
|