You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/front/views/template/Header.tsx

39 lines
1.2 KiB

import { BASE } from "../../Constants"
import accountSvg from "../../assets/account.svg"
/**
*
* @param param0 username
* @returns Header
*/
export function Header({ username }: { username: string }) {
return (
<div id="header">
<div id="header-left"></div>
<div id="header-center">
<h1
id="iqball"
className="clickable"
onClick={() => {
location.pathname = "/"
}}>
<span id="IQ">IQ</span>
<span id="Ball">Ball</span>
</h1>
</div>
<div id="header-right">
<div className="clickable" id="clickable-header-right">
{/* <AccountSvg id="img-account" /> */}
<img
id="img-account"
src={accountSvg}
onClick={() => {
location.pathname = BASE + "/settings"
}}
/>
<p id="username">{username}</p>
</div>
</div>
</div>
)
}