react-spreadsheet
Version:
Simple, customizable yet performant spreadsheet for React
17 lines (15 loc) • 558 B
JavaScript
import React from "react";
import { connect } from "unistore/react";
import * as PointSet from "./point-set";
import * as PointMap from "./point-map";
import FloatingRect, { mapStateToProps } from "./FloatingRect";
var Copied = function Copied(props) {
return /*#__PURE__*/React.createElement(FloatingRect, Object.assign({}, props, {
variant: "copied"
}));
};
export default connect(function (state) {
return mapStateToProps(state.hasPasted ? PointSet.from([]) : PointMap.map(function () {
return true;
}, state.copied))(state);
})(Copied);