Files
ServerKit/frontend/src/contexts/managedProfileContextValue.js
T
Juan Denis 6296887bad Remove internal plan citations from app code
Comments, docstrings and a few strings cited plan numbers ("plan 29
#9", "plan 86 §B2") from a git-ignored folder, so they pointed at
nothing; one reached users in a bottleneck hint. Code and frontend
strings are unchanged apart from those citations (checked by AST and
token comparison). A vhost still carrying the old asset comment reads
as undrifted, and a guard test keeps new citations out.
2026-10-10 15:50:45 -04:00

20 lines
596 B
JavaScript

import { createContext } from 'react';
// The managed-profile context value. Kept in its own module so the
// provider (a component file) and useManagedProfile (the hook) share one
// context object without either exporting across the react-refresh boundary.
const ManagedProfileContext = createContext({
loading: true,
profile: null,
active: false,
lapsed: false,
capabilities: [],
hiddenSidebarIds: new Set(),
capabilityLabel: () => null,
cardForPath: () => null,
isControlHeld: () => false,
reload: () => {},
});
export default ManagedProfileContext;