import { h } from 'preact'; import Link from './components/Link'; import { Link as RouterLink } from 'preact-router/match'; import { useCallback, useState } from 'preact/hooks'; function HamburgerIcon() { return ( ); } function CloseIcon() { return ( ); } function NavLink({ className = '', href, text }) { const external = href.startsWith('http'); const El = external ? Link : RouterLink; const props = external ? { rel: 'noopener nofollow', target: '_blank' } : {}; return ( {text} ); } export default function Sidebar() { const [open, setOpen] = useState(false); const handleToggle = useCallback(() => { setOpen(!open); }, [open, setOpen]); return (
Frigate
); }