mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-16 07:46:40 +00:00
17 lines
426 B
TypeScript
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
|
|
)}
|
|
/>
|
|
);
|
|
}
|