You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
578 B
22 lines
578 B
import React from 'react';
|
|
import { NavDropdown } from 'react-bootstrap';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import ReactCountryFlag from 'react-country-flag';
|
|
|
|
/*@ts-ignore*/
|
|
const LanguageNavItem = ({ countryCode, languageKey, onClick }) => {
|
|
return (
|
|
<NavDropdown.Item onClick={onClick}>
|
|
<ReactCountryFlag
|
|
className="custom-flag"
|
|
countryCode={countryCode}
|
|
svg
|
|
style={{ margin: 'auto 10px 3px auto' }}
|
|
/>
|
|
<FormattedMessage id={languageKey} />
|
|
</NavDropdown.Item>
|
|
);
|
|
};
|
|
|
|
export default LanguageNavItem;
|