import { jsx as _jsx } from "react/jsx-runtime";
import FloatingRect from './FloatingRect';
import { getRangeDimensions } from './util';
import useSelector from './use-selector';
const Copied = () => {
    const range = useSelector((state) => state.copied);
    const dimensions = useSelector((state) => range &&
        getRangeDimensions(state.rowDimensions, state.columnDimensions, range));
    const hidden = range === null;
    return (_jsx(FloatingRect, { variant: "copied", dimensions: dimensions, hidden: hidden, dragging: false }));
};
export default Copied;
//# sourceMappingURL=Copied.js.map