aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/Header/Header.jsx
blob: d85b1eaabab20baa60c31002b1be914ac2bc825e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";
import { SUPPORTED_LANGUAGES } from "../../utils/constants";
import styles from "./Header.module.css";
import CustomSelect from "../CustomSelect/CustomSelect";

const Header = ({ isSelectVisible, onLanguageChange }) => {
  return (
    <div className={styles.header}>
      <h1><span className={styles.header__mini}>mini</span>bin</h1>
      {isSelectVisible && (
        <CustomSelect
          options={SUPPORTED_LANGUAGES}
          onSelect={onLanguageChange}
        />
      )}
    </div>
  );
};

export default Header;