dh_demo

DreamHanks demo project
git clone git://git.lair.cx/dh_demo
Log | Files | Refs | README

NavbarItem.tsx (373B)


      1 import Link, { LinkProps } from 'next/link'
      2 import { AnchorHTMLAttributes, ReactNode } from 'react'
      3 import styles from './Navbar.module.css'
      4 
      5 export interface NavbarItemProps {
      6   href: string
      7   children?: ReactNode
      8 }
      9 
     10 export default function NavbarItem (props: NavbarItemProps) {
     11   return (
     12     <Link className={styles.item} href={props.href}>{props.children}</Link>
     13   )
     14 }