import "./Header.css"; import { useLocation } from 'preact-iso'; import DownloadButton from './DownloadButton.js'; import { Link } from "./Button.js"; import Icon from "./Icon.js"; import logoPath from "../assets/icon-color.svg"; import menuIcon from "../assets/boxicons/bx-menu.svg?raw"; import { useState } from "preact/hooks"; import { SocialButtons } from "./Footer.js"; interface HeaderLink { url: string; text: string; external?: boolean; } const HEADER_LINKS: HeaderLink[] = [ { url: "/get-started/", text: "Get started" }, { url: "https://docs.triliumnotes.org/", text: "Documentation", external: true }, { url: "/support-us/", text: "Support us" } ] export function Header() { const { url } = useLocation(); const [ mobileMenuShown, setMobileMenuShown ] = useState(false); return (
{ e.preventDefault(); setMobileMenuShown(!mobileMenuShown) }} >
); }