mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-18 06:22:11 +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} />;
|
||
|
}
|