import type { ReactNode } from "react"; import { Link, useRouter } from "blitz"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faPhoneAlt as fasPhone, faTh as fasTh, faComments as fasComments, faCog as fasCog, } from "@fortawesome/pro-solid-svg-icons"; import { faPhoneAlt as farPhone, faTh as farTh, faComments as farComments, faCog as farCog, } from "@fortawesome/pro-regular-svg-icons"; export default function Footer() { return ( ); } type NavLinkProps = { path: string; label: string; icons: { active: ReactNode; inactive: ReactNode; }; }; function NavLink({ path, label, icons }: NavLinkProps) { const router = useRouter(); const isActiveRoute = router.pathname.startsWith(path); const icon = isActiveRoute ? icons.active : icons.inactive; return (
{icon} {label}
); }