Something went wrong. Try again.
The agent that grows with you
Something went wrong. Try again.
369 B · 15 lines
TypeScript
12345678910111213141516import { useContext } from "react";import { SystemActionsContext, type SystemActionsState,} from "./system-actions-context";
export function useSystemActions(): SystemActionsState { const ctx = useContext(SystemActionsContext); if (!ctx) { throw new Error( "useSystemActions must be used within a SystemActionsProvider", ); } return ctx;}