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

Function SaveButton

app/src/components/FlowchartHeader.tsx:96–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96function SaveButton() {
97 const isLoggedIn = useIsLoggedIn();
98 const hasProAccess = useHasProAccess();
99 return isLoggedIn ? (
100 hasProAccess ? (
101 <CanSaveButton />
102 ) : (
103 <CannotSaveButton />
104 )
105 ) : (
106 <LogInToSaveButton />
107 );
108}
109
110function LogInToSaveButton() {
111 const navigate = useNavigate();

Callers

nothing calls this directly

Calls 2

useIsLoggedInFunction · 0.90
useHasProAccessFunction · 0.90

Tested by

no test coverage detected