mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-18 06:22:11 +03:00
d9f579cf44
* refactor to include all necessary dependencies directly here * move indexer into monorepo * add snapshot tests and seperate sub.project for builtin types * add more missing builtins such as fromTOML
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} />;
|
|
}
|