AAustin Pickettfeat: add sidebar
e5d2815b创建于 4月24日历史提交
import { 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;
}