import { classy } from '@audentio/utils/src/classy'; import React from 'react'; import style from './CountryFlag.scss'; export interface CountryFlagProps { location: any; round?: boolean; size?: string; className?: string; } export function CountryFlag(props: CountryFlagProps) { const { className, round, location, size, ...rest } = props; const { country, country_shortcode } = location; if (!country_shortcode) return null; return ( {country} ); }