const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/pisellFloorMapLayout/context/FloorMapLayoutContext.tsx
/**
* 平面图数据/保存等注入上下文；单独页面包 `FloorMapLayoutProvider`，RecordBoard 由 Shell 内置 Provider。
*/
const FloorMapLayoutContext = (0, react.createContext)(void 0);
/**
* 未传 `floorMapLayoutContext` 时 Shell 使用该稳定引用，避免无意义变更引用。
*/
const EMPTY_FLOOR_MAP_LAYOUT_CONTEXT = {};
function useFloorMapLayoutContext() {
	return (0, react.useContext)(FloorMapLayoutContext);
}
/** 注入 `FloorMapLayoutContextValue`；`value` 建议由调用方 `useMemo` 稳定化 */
function FloorMapLayoutProvider({ value, children }) {
	return /* @__PURE__ */ react.default.createElement(FloorMapLayoutContext.Provider, { value }, children);
}
//#endregion
exports.EMPTY_FLOOR_MAP_LAYOUT_CONTEXT = EMPTY_FLOOR_MAP_LAYOUT_CONTEXT;
exports.FloorMapLayoutProvider = FloorMapLayoutProvider;
exports.useFloorMapLayoutContext = useFloorMapLayoutContext;
