import React, { FC } from 'react';

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

export interface LanguageSwitcherProps {
  DropdownProps: DropdownListProps;
}

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

export default LanguageSwitcher;
