import { ReactNode, CSSProperties } 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; children?: ReactNode; classList?: Array; style?: CSSProperties; }) { var classes = props.classList || []; classes.push("navbarItem"); props.active && classes.push("active"); return
{props.icon} {props.title}
{props.children}
} export default function Navbar(props: { page?: string; }) { return
} title="Home" href="/" classList={["indentLevel0"]}/> } title="Search for posts" href="/search" classList={["indentLevel0"]}/>
}