"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = useFixedAction;
const react_1 = require("react");
const constant_1 = require("../constant");
const eventBus_1 = require("../utils/eventBus");
function useFixedAction({ show = false, buttons }) {
    (0, react_1.useEffect)(() => {
        eventBus_1.eventBus.emit(constant_1.FIXED_ACTION_EVENT, {
            show,
            buttons,
        });
    }, [show, buttons]);
}
//# sourceMappingURL=use-fixed-action.js.map