import React from 'react';

interface FlagProps {
  countryCode: string;
}

const Flag = ({ countryCode }: FlagProps) => {
  const flagClass = `c-flag flag-icon flag-icon-${countryCode}`;
  return (<i className={flagClass}/>);
};

export default Flag;
