forked from React-Group/interstellar_ai
Split the pages up
This commit is contained in:
parent
54ead8579c
commit
48668f7f6e
7 changed files with 203 additions and 116 deletions
34
app/Header.tsx
Normal file
34
app/Header.tsx
Normal file
|
@ -0,0 +1,34 @@
|
|||
// 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>
|
||||
<button onClick={toggleDivs}>{showDivs ? "Hide Divs" : "Show Divs"}</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export default Header;
|
Loading…
Add table
Add a link
Reference in a new issue