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 { useAmityElement } from '../../hooks';
import { TouchableOpacity } from 'react-native';
import { ComponentID, ElementID, PageID } from '../../enums';
import { startLivestream } from '../../../core/assets/icons';
function StartLivestreamButton({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  ...props
}) {
  const elementId = ElementID.start_livestream_button;
  const styles = useStyles();
  const {
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    activeOpacity: 0.7,
    testID: accessibilityId,
    disabled: props.disabled,
    style: [props.disabled && styles.disabled]
  }, props), /*#__PURE__*/React.createElement(SvgXml, {
    xml: startLivestream()
  }));
}
export default StartLivestreamButton;
//# sourceMappingURL=StartLivestreamButton.js.map