Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

361 B
Raw Blame
import { cn } from "@dub/utils";

export function CountryFlag({
  countryCode,
  className,
}: {
  countryCode: string;
  className?: string;
}) {
  return (
    <img
      alt={`${countryCode} flag`}
      src={`https://hatscripts.github.io/circle-flags/flags/${countryCode.toLowerCase()}.svg`}
      className={cn("size-4 shrink-0", className)}
    />
  );
}