UNPKG

react-planner

Version:

react-planner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.

27 lines (21 loc) 953 B
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } import React from 'react'; import Button from './button'; var STYLE = { borderColor: "#adadad", backgroundColor: "#e6e6e6" }; var STYLE_HOVER = { backgroundColor: "#d4d4d4", borderColor: "#8c8c8c" }; export default function CancelButton(_ref) { var children = _ref.children, rest = _objectWithoutProperties(_ref, ['children']); return React.createElement( Button, _extends({ style: STYLE, styleHover: STYLE_HOVER }, rest), children ); }