MCPcopy
hub / github.com/tone-row/flowchart-fun / useIsReadOnly

Function useIsReadOnly

app/src/lib/hooks.ts:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export function useIsReadOnly() {
16 const { pathname } = useLocation();
17 const params = useParams();
18 return (
19 "public_id" in params || ["/f", "/c", "/r"].some((k) => k === pathname)
20 );
21}
22
23export function useIsLocalChart() {
24 const { pathname } = useLocation();

Callers 2

FlowchartHeaderFunction · 0.90
EditorTabListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected