import { Divider, NavLink, Text } from "@mantine/core"; import { CaretRightIcon, Icon } from "@phosphor-icons/react"; import { Link, useNavigate } from "@tanstack/react-router"; interface ListLinkProps { label: string; to: string; Icon?: Icon; disabled?: boolean } const ListLink = ({ label, to, Icon, disabled=false }: ListLinkProps) => { const navigate = useNavigate(); return ( <> navigate({ to })} label={ {label} } leftSection={Icon && } rightSection={} /> ); }; export default ListLink;