import React, { ReactNode } from 'react'; import Link from 'next/link'; interface HeaderLinkProps { title: string; route: string; icon: ReactNode; onDark?: boolean; className?: string; notification?: number; } const HeaderLink: React.FC = ({ title, route, icon, onDark, className, notification, }) => { return ( {icon}

{title}

{notification ? {notification} : null}
); }; export default HeaderLink;