mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/frontend.git
synced 2024-11-26 11:33:46 +03:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import { useRouter } from "next/router";
|
||
import React from "react";
|
||
import styles from "./header.module.css"
|
||
import 'antd/dist/antd.css';
|
||
|
||
export const Header:React.FC = () =>{
|
||
let router = useRouter()
|
||
|
||
return(
|
||
<div className={styles.header}>
|
||
<div className={styles.logo} onClick={()=>router.push("/")}>
|
||
<img src="/images/logo.svg"></img>
|
||
</div>
|
||
<div className={styles.itemWrapper}>
|
||
<div className={styles.item} onClick={()=>router.push("about")}>
|
||
Про нас
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("how-to-use")}>
|
||
Как пользоваться
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("/")}>
|
||
Главная
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("history")}>
|
||
История файлов
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
);
|
||
} |