import { useEffect } from "react";
let toolbarActionStore = {
    mode: 'design',
    onToolbarAction: void 0,
    breakpoints: void 0
};
function setToolbarActionStore(store) {
    toolbarActionStore = store;
}
function getToolbarActionStore() {
    return toolbarActionStore;
}
function useToolbarActionStore(mode, onToolbarAction, breakpoints) {
    useEffect(()=>{
        setToolbarActionStore({
            mode,
            onToolbarAction,
            breakpoints
        });
        return ()=>{
            setToolbarActionStore({
                mode: 'design',
                onToolbarAction: void 0,
                breakpoints: void 0
            });
        };
    }, [
        mode,
        onToolbarAction,
        breakpoints
    ]);
}
export { getToolbarActionStore, setToolbarActionStore, useToolbarActionStore };
