"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PollHeader = PollHeader;
var _reactNative = require("react-native");
var _reactNativeSvg = require("react-native-svg");
var _icons = require("../../../../../core/assets/icons");
var _Typography = require("../../../../../core/components/Typography/Typography");
var _styles = require("../styles");
function PollHeader({
  goBack,
  targetName,
  isBtnDisable,
  handleCreatePost
}) {
  const {
    styles,
    theme
  } = (0, _styles.useStyles)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.header
  }, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
    onPress: goBack
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: "24",
    height: "24",
    xml: (0, _icons.close)(),
    color: theme.colors.base
  })), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.title
  }, /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    style: styles.base
  }, targetName)), /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
    disabled: isBtnDisable,
    onPress: handleCreatePost
  }, /*#__PURE__*/React.createElement(_Typography.Typography.Body, {
    style: [styles.cta, isBtnDisable && styles.disabled]
  }, "Post")));
}
//# sourceMappingURL=PollHeader.js.map