/**
 * Copyright (c) 2020 BlockDev AG
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ import React from "react" ; import { CircleFlag } from "react-circle-flags" ; export interface FlagProps { className ? : string ; countryCode ? : string ; size ? : number ; } export const Flag = ( { className , countryCode = "unknown" , size = 15 } ) => { return ( < CircleFlag className = { className } countryCode = { countryCode ?. toLowerCase ( ) ?? "unknown" } width = { size } height = { size } / > ) ; } ;