blob: 712696cb8d0115c153904d0eeb3515c0e84e8bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import React from "react";
import { Link } from "react-router-dom";
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}>
<Link to="/"><h1><span className={styles.header__mini}>mini</span>bin</h1></Link>
{isSelectVisible && (
<CustomSelect
options={SUPPORTED_LANGUAGES}
onSelect={onLanguageChange}
/>
)}
</div>
);
};
export default Header;
|