import Image, { type ImageProps } from "next/image";

type BrandingLogoProps = Omit<ImageProps, "src"> & {
  src: string;
};

/**
 * Tenant logos come from a runtime API and may be hosted on any trusted CDN.
 * Keep them unoptimized so Next.js does not require every tenant hostname in
 * next.config.js.
 */
export function BrandingLogo({ src, ...props }: BrandingLogoProps) {
  return <Image {...props} src={src} unoptimized />;
}
