UNPKG

kitchen-simulator

Version:

It is a kitchen simulator (self-contained micro-frontend).

18 lines (17 loc) 442 B
import React from 'react'; import PropTypes from 'prop-types'; /** * @return {null} */ export default function If(_ref) { var condition = _ref.condition, style = _ref.style, children = _ref.children; return condition ? Array.isArray(children) ? /*#__PURE__*/React.createElement("div", { style: style }, children) : children : null; } If.propTypes = { condition: PropTypes.bool.isRequired, style: PropTypes.object };