import { FC } from 'react'; import Image from 'next/future/image'; import { imagePresets } from '~/constants/urls'; import { IFile } from '~/types'; import { normalizeBrightColor } from '~/utils/color'; import { getURL } from '~/utils/dom'; interface NodeImageLazyProps { className?: string; file: IFile; onLoad?: () => void; onClick?: () => void; } /** Separates SVG-s and raster images to be used in NodeImageSwiperBlock */ const NodeImageLazy: FC = ({ file, onLoad, className, onClick, }) => { if (file.url.endsWith('svg')) { return ( ); } return ( ); }; export { NodeImageLazy };