mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
2 lines
99 B
TypeScript
2 lines
99 B
TypeScript
export const isActive = (pathname: string, href: string) => pathname && pathname.startsWith(href);
|