import { useEffect } from 'react';
import { FIXED_ACTION_EVENT } from '../constant';
import { eventBus } from '../utils/eventBus';
export default function useFixedAction({ show = false, buttons }) {
    useEffect(() => {
        eventBus.emit(FIXED_ACTION_EVENT, {
            show,
            buttons,
        });
    }, [show, buttons]);
}
//# sourceMappingURL=use-fixed-action.js.map