Spaces:
Sleeping
Sleeping
Download src/components/Header.jsx from Aya07/emotion-ui: direct link, hf CLI and curl.
- Browser
- Download file 981 Bytes
-
https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/components/Header.jsx
- Command line
-
hf download hf://spaces/Aya07/emotion-ui/src/components/Header.jsx
-
curl -L -o Header.jsx https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/components/Header.jsx
981 Bytes
| import logoImage from "../assets/image.jpg"; | |
| import { translations } from "../constants/translations"; | |
| import "../styles/Header.css"; | |
| const Header = ({ lang, setLang, t }) => { | |
| return ( | |
| <div className="header"> | |
| <div className="logo"> | |
| <img src={logoImage} alt="Logo" className="logo-icon" /> | |
| <h1>Emotion<span>Detect</span></h1> | |
| </div> | |
| <div style={{ display: "flex", alignItems: "center", gap: "12px" }}> | |
| <div className="lang-switcher"> | |
| {["en", "fr", "ar"].map((l) => ( | |
| <button | |
| key={l} | |
| className={`lang-btn ${lang === l ? "active" : ""}`} | |
| onClick={() => setLang(l)} | |
| > | |
| {translations[l].langLabel} | |
| </button> | |
| ))} | |
| </div> | |
| <div className="header-status"> | |
| <span className="status-dot"></span> | |
| <span>{t.systemOnline}</span> | |
| </div> | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default Header; |