UNPKG

gather-content-ui

Version:
32 lines (29 loc) 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComponentInstructions = ComponentInstructions; var _react = _interopRequireDefault(require("react")); var _ExpandingTextArea = _interopRequireDefault(require("../../../../ExpandingTextArea")); var _react2 = _interopRequireDefault(require("linkifyjs/react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // @ts-expect-error TS(2307): Cannot find module 'lib/ExpandingTextArea' or its ... Remove this comment to see the full error message // @ts-expect-error TS(7016): Could not find a declaration file for module 'link... Remove this comment to see the full error message function ComponentInstructions(_ref) { var editable = _ref.editable, instructions = _ref.instructions, onChange = _ref.onChange; if (editable) { return /*#__PURE__*/_react["default"].createElement(_ExpandingTextArea["default"], { className: "gui-component-instructions", type: "text", value: instructions, handleOnChange: onChange, placeholder: "Add some instructions for the component..." }); } return /*#__PURE__*/_react["default"].createElement("div", { className: "gui-component-instructions" }, /*#__PURE__*/_react["default"].createElement(_react2["default"], null, instructions)); } //# sourceMappingURL=ComponentInstructions.js.map