import React, { useCallback } from 'react';
import ReactResizeDetector from 'react-resize-detector';
import { useSigma } from '@react-sigma/core';
export var SigmaGraphResizer = function () {
    var sigma = useSigma();
    var onResize = useCallback(function () {
        sigma.refresh();
    }, [sigma]);
    return React.createElement(ReactResizeDetector, { handleWidth: true, onResize: onResize });
};
