import Link from "next/link";
import Image from "next/image";

type BrandAssetProps = {
  className?: string;
  title?: string;
};

export function BrandMark({ className, title }: BrandAssetProps) {
  return (
    <Image
      className={className}
      src="/brand-mark.svg"
      width={1024}
      height={1024}
      alt={title ?? ""}
      aria-hidden={title ? undefined : true}
      unoptimized
    />
  );
}

export function Brand() {
  return (
    <Link className="brand" href="/" aria-label="VniDrop home">
      <span className="brand-primary">
        <BrandMark className="brand-mark-image" />
        <span className="brand-name">VniDrop</span>
      </span>
      <span className="brand-tagline">Send files directly. Stay in control.</span>
    </Link>
  );
}
