"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _view2Module = _interopRequireDefault(require("./css/view2.module.scss"));
// eslint-disable-next-line import/no-duplicates

var DefaultItemRenderer = function DefaultItemRenderer(_ref) {
  var checked = _ref.checked,
    option = _ref.option,
    onClick = _ref.onClick,
    disabled = _ref.disabled;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "item-renderer " + (disabled ? 'disabled' : '')
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].rows
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].input
  }, /*#__PURE__*/_react["default"].createElement("input", {
    type: "checkbox",
    onChange: onClick,
    checked: checked,
    tabIndex: -1,
    disabled: disabled
  })), option.shopImg ? /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].right
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].img
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: option.shopImg
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].detail
  }, /*#__PURE__*/_react["default"].createElement("div", null, option.label), /*#__PURE__*/_react["default"].createElement("div", null, option.price1))) : /*#__PURE__*/_react["default"].createElement("div", {
    className: _view2Module["default"].detail
  }, /*#__PURE__*/_react["default"].createElement("div", null, option.label), /*#__PURE__*/_react["default"].createElement("div", null, option.price1))));
};
var _default = DefaultItemRenderer;
exports["default"] = _default;