import type { NavLink } from "../../shared" ; import { useResolveRouteWithRedirect } from "./useResolveRouteWithRedirect" ; example export const useNavLink = ( item ) : NavLink => { const resolved = useResolveRouteWithRedirect ( item ) ; return { text : resolved . meta . title || item , link : resolved . name === "404" ? item : resolved . fullPath } ; } ;