import { View, TouchableOpacity } from 'react-native';
import { SvgXml } from 'react-native-svg';
import { close } from '../../../../../core/assets/icons';
import { Typography } from '../../../../../core/components/Typography/Typography';
import { useStyles } from '../styles';
export function PollHeader({
  goBack,
  targetName,
  isBtnDisable,
  handleCreatePost
}) {
  const {
    styles,
    theme
  } = useStyles();
  return /*#__PURE__*/React.createElement(View, {
    style: styles.header
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
    onPress: goBack
  }, /*#__PURE__*/React.createElement(SvgXml, {
    width: "24",
    height: "24",
    xml: close(),
    color: theme.colors.base
  })), /*#__PURE__*/React.createElement(View, {
    style: styles.title
  }, /*#__PURE__*/React.createElement(Typography.TitleBold, {
    style: styles.base
  }, targetName)), /*#__PURE__*/React.createElement(TouchableOpacity, {
    disabled: isBtnDisable,
    onPress: handleCreatePost
  }, /*#__PURE__*/React.createElement(Typography.Body, {
    style: [styles.cta, isBtnDisable && styles.disabled]
  }, "Post")));
}
//# sourceMappingURL=PollHeader.js.map