16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
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>
|
|
)
|
|
}
|