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 { TouchableOpacity } from 'react-native';
import { ComponentID, ElementID, PageID } from '../../enums/enumUIKitID';
import { useAmityElement } from '../../hooks';
import { useStyles } from './styles';
import { Typography } from '../../../core/components/Typography/Typography';
import { trash } from '../../../core/assets/icons';
import { SvgXml } from 'react-native-svg';
const ChangeThumbnailButton = ({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  ...props
}) => {
  const {
    themeStyles,
    config
  } = useAmityElement({
    pageId,
    componentId,
    elementId: ElementID.delete_thumbnail_button
  });
  const styles = useStyles(themeStyles);
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    activeOpacity: 0.7,
    style: styles.button
  }, props), /*#__PURE__*/React.createElement(SvgXml, {
    width: 24,
    height: 24,
    xml: trash(),
    color: themeStyles.colors.alert
  }), /*#__PURE__*/React.createElement(Typography.BodyBold, {
    style: styles.label
  }, config.text || 'Delete thumbnail'));
};
export default ChangeThumbnailButton;
//# sourceMappingURL=DeleteThumbnailButton.js.map