MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isActive

Function isActive

frontend/src/components/layout/AppLayout.tsx:336–341  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

334 ];
335
336 const isActive = (path: string) => {
337 if (path === '/') {
338 return location.pathname === '/' || location.pathname.startsWith('/workflows');
339 }
340 return location.pathname === path || location.pathname.startsWith(`${path}/`);
341 };
342
343 // Get page-specific actions
344 const getPageActions = () => {

Callers 1

AppLayoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected