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 { plus } from '../../../core/assets/icons';
function CommunityCreatePostButton({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  ...props
}) {
  const elementId = ElementID.community_create_post_button;
  const {
    themeStyles
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const styles = useStyles(themeStyles);
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    hitSlop: 0.8,
    style: styles.fab,
    activeOpacity: 0.8
  }, props), /*#__PURE__*/React.createElement(SvgXml, {
    xml: plus(),
    width: 32,
    height: 32,
    color: themeStyles.colors.background
  }));
}
export default CommunityCreatePostButton;
//# sourceMappingURL=CommunityCreatePostButton.js.map