import Image, { ImageLoaderProps, ImageProps } from 'next/image'; import * as React from 'react'; import clsxm from '@/lib/clsxm'; type NextImageProps = ( | { width: string | number; height: string | number } | { layout: 'fill'; width?: string | number; height?: string | number } ) & ImageProps; export default function NextImage({ className, src, width, height, layout, alt, ...rest }: NextImageProps) { return (
{alt}
); } const customLoader = ({ src, width, quality }: ImageLoaderProps): string => { return `${src}?w=${width}&q=${quality || 75}`; }; const shimmer = (w: number, h: number) => ` `; const toBase64 = (str: string) => typeof window === 'undefined' ? Buffer.from(str).toString('base64') : window.btoa(str);