/* eslint-disable @next/next/no-img-element -- vector brand marks are served as-is (no raster optimisation needed) */

type Props = {
  variant?: "full" | "symbol";
  tone?: "default" | "reverse";
  className?: string;
  /** Accessible name; pass "" when the logo is decorative next to visible text. */
  alt?: string;
  priority?: boolean;
};

/** Official Arsy Pusaka Indonesia logo, vector-extracted from the company profile. */
export default function Logo({ variant = "full", tone = "default", className, alt = "Arsy Pusaka Indonesia", priority }: Props) {
  const file =
    variant === "full"
      ? tone === "reverse"
        ? "/brand/arsy-pusaka-indonesia-logo-reverse.svg"
        : "/brand/arsy-pusaka-indonesia-logo.svg"
      : tone === "reverse"
        ? "/brand/arsy-symbol-reverse.svg"
        : "/brand/arsy-symbol.svg";
  const [w, h] = variant === "full" ? [215, 95] : [71, 95];
  return (
    <img
      src={file}
      width={w}
      height={h}
      alt={alt}
      className={className}
      fetchPriority={priority ? "high" : undefined}
      decoding="async"
    />
  );
}
