(path: string)
| 9 | import { useAuthContext } from '../../contexts/AuthContext'; |
| 10 | |
| 11 | const segments = (path: string): string[] => |
| 12 | path.split('?')[0].split('#')[0].split('/').filter(Boolean); |
| 13 | |
| 14 | // A squad shortcut's handle is the segment right AFTER /squads/ — not the last |
| 15 | // one, which on a sub-page (/squads/<handle>/members) is the sub-page itself. |
no outgoing calls
no test coverage detected