UNPKG

@confi/conflux-react-ui-test-package

Version:

Modern and minimalist React UI library.

23 lines (20 loc) 1.82 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _JSXStyle from "styled-jsx/style"; import React from 'react'; import useTheme from '../styles/use-theme'; var ModalActions = function ModalActions(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, ["children"]); var theme = useTheme(); return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { className: _JSXStyle.dynamic([["1120579011", [theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border]]]) }), /*#__PURE__*/React.createElement("footer", _extends({}, props, { className: _JSXStyle.dynamic([["1120579011", [theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border]]]) + " " + (props && props.className != null && props.className || "") }), children), /*#__PURE__*/React.createElement(_JSXStyle, { id: "1120579011", dynamic: [theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border] }, "footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;width:100%;height:3.625rem;position:absolute;bottom:0;left:0;right:0;border-top:1px solid ".concat(theme.palette.border, ";border-bottom-left-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}footer.__jsx-style-dynamic-selector>button + button{border-left:1px solid ").concat(theme.palette.border, ";}div.__jsx-style-dynamic-selector{height:3.625rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}"))); }; var MemoModalActions = React.memo(ModalActions); export default MemoModalActions;