import Image, { ImageProps } from 'next/image';
import { IMAGE_QUALITY } from '@/infrastructure/images';

type AppImageProps = ImageProps & {
  quality?: number;
};

/** Site-wide Image wrapper with consistent high quality defaults */
export default function AppImage({ quality = IMAGE_QUALITY, ...props }: AppImageProps) {
  return <Image quality={quality} {...props} />;
}