import Image from "next/image";
import { ImgHTMLAttributes } from "react";
interface CustomImageProps extends Omit, 'src' | 'alt'> {
src: string;
alt: string;
fill?: boolean;
sizes?: string;
priority?: boolean;
}
export const CustomImage = ({ src, alt, fill, sizes, priority, className, style, ...props }: CustomImageProps) => {
// Check if src is a data URL (base64)
const isDataUrl = src.startsWith('data:');
if (isDataUrl) {
// For data URLs, use regular img tag
return (
);
}
// For regular URLs, use Next.js Image component
return (
);
};