Release 3X-UI for Docker / build (push) Canceled after 0s
Release 3X-UI / build (386) (push) Canceled after 0s
Release 3X-UI / build (amd64) (push) Canceled after 0s
Release 3X-UI / build (arm64) (push) Canceled after 0s
Release 3X-UI / build (armv5) (push) Canceled after 0s
Release 3X-UI / build (armv6) (push) Canceled after 0s
Release 3X-UI / build (armv7) (push) Canceled after 0s
Release 3X-UI / build (s390x) (push) Canceled after 0s
Release 3X-UI / Build for Windows (amd64) (push) Canceled after 0s
Release 3X-UI / Publish rolling dev release (push) Canceled after 0s
19 lines
496 B
TypeScript
19 lines
496 B
TypeScript
import { CloudOutlined } from '@ant-design/icons';
|
|
|
|
interface CountryPillProps {
|
|
flag: string;
|
|
name: string;
|
|
warp?: string;
|
|
}
|
|
|
|
export default function CountryPill({ flag, name, warp }: CountryPillProps) {
|
|
const isWarp = !!warp && warp.toLowerCase() !== 'off';
|
|
return (
|
|
<span className={isWarp ? 'country-pill warp-on' : 'country-pill'}>
|
|
{isWarp && <CloudOutlined className="warp-cloud-icon" />}
|
|
{flag && <span>{flag}</span>}
|
|
<span>{name}</span>
|
|
</span>
|
|
);
|
|
}
|