"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _styles = require("./styles");
var _reactNativeSvg = require("react-native-svg");
var _icons = require("../../../core/assets/icons");
var _hooks = require("../../hooks");
var _enums = require("../../enums");
var _Typography = require("../../../core/components/Typography/Typography");
var _reactNative = require("react-native");
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function AddOptionButton({
  pageId = _enums.PageID.WildCardPage,
  componentId = _enums.ComponentID.WildCardComponent,
  ...props
}) {
  const elementId = _enums.ElementID.poll_add_option_button;
  const {
    accessibilityId,
    themeStyles,
    config
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId
  });
  const styles = (0, _styles.useStyles)(themeStyles);
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, _extends({
    testID: accessibilityId,
    style: styles.addOptionButton
  }, props), /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    xml: (0, _icons.plus)(),
    width: "20",
    height: "20",
    color: themeStyles.colors.base
  }), /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, {
    style: styles.addOptionLabel
  }, config === null || config === void 0 ? void 0 : config.text));
}
var _default = exports.default = AddOptionButton;
//# sourceMappingURL=index.js.map