"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolbarProvider = void 0;
exports.useToolbarContext = useToolbarContext;
const react_1 = require("react");
// TODO: specify generic editor type
const ToolbarContext = (0, react_1.createContext)(undefined);
exports.ToolbarProvider = ToolbarContext.Provider;
function useToolbarContext() {
    return (0, react_1.useContext)(ToolbarContext);
}
//# sourceMappingURL=context.js.map
