import { jsx as _jsx } from "react/jsx-runtime";
import { getSelectedDimensions } from './util';
import FloatingRect from './FloatingRect';
import useSelector from './use-selector';
const Selected = () => {
    const selected = useSelector((state) => state.selected);
    const dimensions = useSelector((state) => selected &&
        getSelectedDimensions(state.rowDimensions, state.columnDimensions, state.model.data, state.selected));
    const dragging = useSelector((state) => state.dragging);
    const hidden = useSelector((state) => state.selected.size(state.model.data) < 2);
    return (_jsx(FloatingRect, { variant: "selected", dimensions: dimensions, dragging: dragging, hidden: hidden }));
};
export default Selected;
//# sourceMappingURL=Selected.js.map