1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-10 17:47:41 +01:00
smov/src/components/FlagIcon.tsx

17 lines
426 B
TypeScript

import classNames from "classnames";
import "flag-icons/css/flag-icons.min.css";
export interface FlagIconProps {
countryCode?: string;
}
export function FlagIcon(props: FlagIconProps) {
return (
<span
className={classNames(
"!w-8 h-6 rounded overflow-hidden bg-video-context-flagBg bg-cover bg-center block fi",
props.countryCode ? `fi-${props.countryCode}` : undefined
)}
/>
);
}