2025-05-12 19:31:19 +02:00
|
|
|
import { h } from 'preact' // Necessary ?
|
|
|
|
import styles from './navbar.module.css'
|
|
|
|
|
|
|
|
function NavBar({ children, className, ...rest}) {
|
|
|
|
|
|
|
|
return (
|
2025-05-12 20:30:00 +02:00
|
|
|
<nav
|
2025-05-12 19:31:19 +02:00
|
|
|
className={styles.navbar}
|
|
|
|
{...rest} // Allow passing other props like 'disabled', 'type', etc.
|
|
|
|
>
|
|
|
|
{children}
|
2025-05-12 20:30:00 +02:00
|
|
|
<a href='index'> Home </a>
|
|
|
|
<a href='settings'> Mods </a>
|
|
|
|
<a href='settings'> Modpacks </a>
|
|
|
|
</nav>
|
2025-05-12 19:31:19 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NavBar;
|