aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/Header/Header.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/Header/Header.jsx')
-rw-r--r--client/src/components/Header/Header.jsx22
1 files changed, 15 insertions, 7 deletions
diff --git a/client/src/components/Header/Header.jsx b/client/src/components/Header/Header.jsx
index a69803a..fb8d694 100644
--- a/client/src/components/Header/Header.jsx
+++ b/client/src/components/Header/Header.jsx
@@ -1,12 +1,20 @@
-import React from 'react'
-import styles from './Header.module.css'
+import React from "react";
+import { SUPPORTED_LANGUAGES } from "../../utils/constants";
+import styles from "./Header.module.css";
+import CustomSelect from "../CustomSelect/CustomSelect";
-const Header = () => {
+const Header = ({ isSelectVisible, onLanguageChange }) => {
return (
<div className={styles.header}>
- <h1>&#60;minibin /&#62;</h1>
+ <h1>minibin</h1>
+ {isSelectVisible && (
+ <CustomSelect
+ options={SUPPORTED_LANGUAGES}
+ onSelect={onLanguageChange}
+ />
+ )}
</div>
- )
-}
+ );
+};
-export default Header \ No newline at end of file
+export default Header;