<script lang="ts">
    import "../app.postcss";
    import Navbar from "$lib/navbar.svelte";
    import './styles.css';
    import { navTitle } from "$lib/store";

    let pageTitle: string = $navTitle ?? 'Default Title'
    // let navbarElements: NavbarObject[] = [new NavbarObject('/', 'Home'), new NavbarObject('/abtme', 'Sobre mi'), new NavbarObject('/temps', 'Temps'), new NavbarObject('/xema', 'Estacions'), new NavbarObject('/openmeteo', 'Dades Open Meteo')]
</script>
<Navbar pageTitle={pageTitle} />
<main>
    <slot></slot>
</main>
