mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-03 21:51:22 +09:00
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.
20 lines
596 B
JavaScript
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;
|