MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / OrgApiKeysSection

Function OrgApiKeysSection

packages/react/src/pages/api-keys.tsx:406–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 });
405
406export function OrgApiKeysSection() {
407 // Gate BEFORE mounting the body: `orgApiKeysAtom` starts its fetch when the
408 // reading component mounts, and for a plain member that request is a
409 // guaranteed 403. Fail-closed like the admin nav — while the member list is
410 // loading, show nothing rather than a section that will refuse.
411 const isAdmin = useIsTenantAdmin();
412 return isAdmin ? <OrgApiKeysSectionBody /> : null;
413}
414
415function OrgApiKeysSectionBody() {
416 const result = useAtomValue(orgApiKeysAtom);

Callers

nothing calls this directly

Calls 1

useIsTenantAdminFunction · 0.90

Tested by

no test coverage detected