MCPcopy Create free account
hub / github.com/dailydotdev/apps / isFeedEditPath

Function isFeedEditPath

packages/shared/src/components/shell/shellNav.ts:340–343  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

338};
339
340export const isFeedEditPath = (pathname: string): boolean => {
341 const path = withoutLayoutVariantPrefix(pathname ?? '');
342 return path.startsWith('/feeds/') && path.endsWith('/edit');
343};
344
345// Whether the previous history entry is one of ours. Next keeps the index
346// of each client navigation in history.state, which the referrer (set once

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected