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