import { ReactNode } from 'react'; import HomeRoundedIcon from '@material-ui/icons/HomeRounded'; import SearchRoundedIcon from '@material-ui/icons/SearchRounded'; export function NavbarItem(props: { icon?: ReactNode; title: string; href?: string; active?: boolean; chapterIndent?: number; children?: ReactNode; }) { return
{props.icon} {props.title}
{props.children}
} export default function Navbar(props: { page?: string; }) { return
} title="Home" href="/"/> } title="Search for posts" href="/search"/>
}