import classNames from "classnames";
import { getCountryCodeForLocale } from "@/utils/language";
import "flag-icons/css/flag-icons.min.css";
export interface FlagIconProps {
country?: string;
langCode?: string;
}
export function FlagIcon(props: FlagIconProps) {
let countryCode: string | null = props.country ?? null;
if (props.langCode) countryCode = getCountryCodeForLocale(props.langCode);
if (props.langCode === "tok")
return (
);
if (props.langCode === "pirate")
return (
);
if (props.langCode === "cat")
return (
);
if (props.langCode === "uwu")
return (
);
if (props.langCode === "minion")
return (
);
if (props.langCode === "futhark")
return (
);
// Galicia - Not a country (Is a region of Spain) so have to add the flag manually
if (props.langCode === "gl-ES")
return (
);
let backgroundClass = "bg-video-context-flagBg";
if (countryCode === "np") backgroundClass = "bg-white";
return (
);
}