import { routeIntercept } from '../../functions/Route'
import './styles/SidebarItemText.css'

interface PropsForSidebarItemText {
    location: string
    label: string
}

export default function SidebarItemText({ location, label }: PropsForSidebarItemText) {
    return (
        <a className="item-text animation-scroll-in" href={location} onClick={routeIntercept}>
            {label}
        </a>
    )
}
