2024-09-18 10:03:36 +02:00
|
|
|
// Header.tsx
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
interface HeaderProps {
|
|
|
|
toggleDivs: () => void;
|
|
|
|
showDivs: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Header: React.FC<HeaderProps> = ({ toggleDivs, showDivs }) => {
|
|
|
|
return (
|
|
|
|
<header>
|
|
|
|
<div className="header-menu">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="/">
|
|
|
|
<img src="/img/logo.png" alt="logo" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/documentation">Documentation</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/faq">FAQ</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-09-18 11:17:34 +02:00
|
|
|
<button onClick={toggleDivs}>
|
|
|
|
{showDivs ? "Hide History and Models" : "Show History and Models"}
|
|
|
|
</button>
|
2024-09-18 10:03:36 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Header;
|