import { useContext, useCallback } from 'react';
import { UserDispatchContext } from './internal';
export function useUserActions() {
    const actions = useContext(UserDispatchContext);
    const changeTenant = useCallback((tenantId) => {
        var _a;
        return (_a = actions === null || actions === void 0 ? void 0 : actions.changeTenant) === null || _a === void 0 ? void 0 : _a.call(actions, tenantId);
    }, [actions]);
    return { changeTenant };
}
//# sourceMappingURL=users.js.map