// @flow
import * as React from 'react';

// There is detect-emoji-support lib, but it does not work on the server.
// We don't need it, emoji is well supported.
// http://caniemoji.com

// TODO: Return string with React 16
const CountryFlag = ({ code }: { code: string }) => (
  <span style={{ verticalAlign: 'middle' }}>
    {code
      .toUpperCase()
      .replace(/./g, char => String.fromCodePoint(char.charCodeAt(0) + 127397))}
  </span>
);

export default CountryFlag;

@@ -39,190 +39,8 @@
 ';%0A%0A
-// There is detect-emoji-support lib, but it does not work on the server.%0A// We don't need it, emoji is well supported.%0A// http://caniemoji.com%0A%0A// TODO: Return string with React 16%0A
 cons
@@ -90,68 +90,16 @@
 ) =%3E
- (
 %0A  
-%3Cspan style=%7B%7B verticalAlign: 'middle' %7D%7D%3E%0A    %7B
 code%0A
-  
     
@@ -113,18 +113,16 @@
 rCase()%0A
-  
     .rep
@@ -193,21 +193,8 @@
 397)
-)%7D%0A  %3C/span%3E%0A
 );%0A%0A

Remove unneeded wrapper from CountryFlag