noogle/website/components/image/image.tsx
Johannes Kirschbauer d9f579cf44
Feature/monorepo (#24)
* 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
2023-02-25 13:14:40 +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} />;
}