29 lines
563 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from "react";
import Link from "next/link";
import { IHeaderProps } from "types/user";
const Header: React.FC<IHeaderProps> = ({ points }) => {
return (
<header>
<div>Очки: {points}</div>
<nav>
<ul>
<li>
<Link href="/profile">
<a>Профиль</a>
</Link>
</li>
<li>
<Link href="/achivements">
<a>Ачивки</a>
</Link>
</li>
</ul>
</nav>
</header>
);
};
export default Header;