import React, { FC } from 'react';

import css from './index.module.css';
import DropdownList, { DropdownListProps } from '../../blocks/DropdownList';

export interface CountrySwitcherProps {
  DropdownProps: DropdownListProps;
}

const CountrySwitcher: FC<CountrySwitcherProps> = ({ DropdownProps }) => (
  <div className={css.languageSwitcher} data-testid="CountrySwitcher">
    {DropdownProps && <DropdownList {...DropdownProps} type="filled" />}
  </div>
);

export default CountrySwitcher;
