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); }
import { useStyles } from './styles';
import { SvgXml } from 'react-native-svg';
import { plus } from '../../../core/assets/icons';
import { useAmityElement } from '../../hooks';
import { ComponentID, ElementID, PageID } from '../../enums';
import { Typography } from '../../../core/components/Typography/Typography';
import { TouchableOpacity } from 'react-native';
function AddOptionButton({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  ...props
}) {
  const elementId = ElementID.poll_add_option_button;
  const {
    accessibilityId,
    themeStyles,
    config
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const styles = useStyles(themeStyles);
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    testID: accessibilityId,
    style: styles.addOptionButton
  }, props), /*#__PURE__*/React.createElement(SvgXml, {
    xml: plus(),
    width: "20",
    height: "20",
    color: themeStyles.colors.base
  }), /*#__PURE__*/React.createElement(Typography.BodyBold, {
    style: styles.addOptionLabel
  }, config === null || config === void 0 ? void 0 : config.text));
}
export default AddOptionButton;
//# sourceMappingURL=index.js.map