blob: fb8d694cba5a42ead0d344349582ff3f13f573f3 (
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>minibin</h1>
{isSelectVisible && (
<CustomSelect
options={SUPPORTED_LANGUAGES}
onSelect={onLanguageChange}
/>
)}
</div>
);
};
export default Header;
|