UNPKG

@carbon/ibm-cloud-cognitive-cdai

Version:
44 lines (43 loc) 1.91 kB
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _inherits from "@babel/runtime/helpers/inherits"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // // Copyright IBM Corp. 2020, 2020 // // This source code is licensed under the Apache-2.0 license found in the // LICENSE file in the root directory of this source tree. // import React from 'react'; import PropTypes from 'prop-types'; import { idePrefix } from '../../globals/js/settings'; var IdeCreateStep = /*#__PURE__*/function (_React$Component) { function IdeCreateStep() { _classCallCheck(this, IdeCreateStep); return _callSuper(this, IdeCreateStep, arguments); } _inherits(IdeCreateStep, _React$Component); return _createClass(IdeCreateStep, [{ key: "render", value: function render() { return /*#__PURE__*/React.createElement("div", { className: "".concat(idePrefix, "-create-step") }, this.props.children); } }]); }(React.Component); _defineProperty(IdeCreateStep, "propTypes", { /** * Child components */ children: PropTypes.any, /** * Label to show for the step (must NOT be set for pre-check step) */ label: PropTypes.string }); export default IdeCreateStep;