/
watchadoing
/
ArgicultureAI
Обзор
Документация
Войти
/
watchadoing
/
ArgicultureAI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Frontend/src/components/Header/Header.tsx
35 строк
1 KB
Andrey Isaev
feat: add header info
10 май 2025, 17:48
10 май 2025, 17:48
b522724
Код
Авторство
О чём код?
import { wheatLogo,authorizationIcon } from '../Svg/Svg'; import styles from './Header.module.scss'; export interface FooterProps { isAuth: boolean, linkMainSite: string, onClickEntrance: ()=> void; onClickExit: ()=> void; } export const Header = (props: FooterProps)=> { const {isAuth, linkMainSite, onClickEntrance, onClickExit} = props; return ( <header className={styles.headerContainer}> <nav className={styles.headerNavigation}> <a className={styles.headerMainSiteLink} href={linkMainSite}> {wheatLogo} </a> <nav className={styles.headerAuthContainer}> {isAuth? <span className={styles.headerAuthText}>{"Выйти"}</span> : <span className={styles.headerAuthText}>{"Войти"}</span> } <a className={styles.headerAuthIcon}> {authorizationIcon} </a> </nav> </nav> <h1 className={styles.headerNameSite}> {"Нейросеть урожайности пшеницы"} </h1> </header> ) }