Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

564 B
Raw Blame
import { useContext } from 'react';
import ManagedProfileContext from './managedProfileContextValue';

// Read the managed profile anywhere under DashboardLayout: whether
// it is active, the held capabilities, the sidebar ids it removes, the
// capability a path's managed card belongs to, and whether a named in-page
// control is held. Outside the provider the context default answers "no
// profile" — nothing is ever hidden on a guess.
export function useManagedProfile() {
    return useContext(ManagedProfileContext);
}

export default useManagedProfile;