"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _enumUIKitID = require("../../enums/enumUIKitID");
var _hooks = require("../../hooks");
var _styles = require("./styles");
var _Typography = require("../../../core/components/Typography/Typography");
var _icons = require("../../../core/assets/icons");
var _reactNativeSvg = require("react-native-svg");
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); }
const ChangeThumbnailButton = ({
  pageId = _enumUIKitID.PageID.WildCardPage,
  componentId = _enumUIKitID.ComponentID.WildCardComponent,
  ...props
}) => {
  const {
    themeStyles,
    config
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId: _enumUIKitID.ElementID.change_thumbnail_button
  });
  const styles = (0, _styles.useStyles)(themeStyles);
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, _extends({
    activeOpacity: 0.7,
    style: styles.button
  }, props), /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 24,
    height: 24,
    xml: (0, _icons.thumbnail)(),
    color: themeStyles.colors.base
  }), /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, {
    style: styles.label
  }, config.text || 'Change thumbnail'));
};
var _default = exports.default = ChangeThumbnailButton;
//# sourceMappingURL=ChangeThumbnailButton.js.map