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