import { useContext, useEffect } from 'react';
import { DndMonitorContext } from './DndMonitorContext';
export var useDndMonitor = function (listener) {
    var registerListener = useContext(DndMonitorContext);
    useEffect(function () {
        var unsubscribe = registerListener(listener);
        return unsubscribe;
    }, [listener, registerListener]);
};
