"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PollSelection = PollSelection;
var _reactNative = require("react-native");
var _PollPostComposer = require("../PollPostComposer");
var _styles = require("../styles");
var _FormLabel = _interopRequireDefault(require("../../../../elements/FormLabel"));
var _enums = require("../../../../enums");
var _FormDescription = _interopRequireDefault(require("../../../../elements/FormDescription"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function PollSelection() {
  const {
    styles,
    theme
  } = (0, _styles.useStyles)();
  const {
    isMultipleOption,
    setIsMultipleOption
  } = (0, _PollPostComposer.usePollPostComposerContext)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.fieldContainer
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.rowContainer
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.fillSpace
  }, /*#__PURE__*/React.createElement(_FormLabel.default, {
    style: styles.base,
    pageId: _enums.PageID.poll_post_composer_page,
    elementId: _enums.ElementID.poll_multiple_selection_title
  }), /*#__PURE__*/React.createElement(_FormDescription.default, {
    style: styles.baseShade1,
    pageId: _enums.PageID.poll_post_composer_page,
    elementId: _enums.ElementID.poll_multiple_selection_desc
  })), /*#__PURE__*/React.createElement(_reactNative.Switch, {
    ios_backgroundColor: theme.colors.baseShade3,
    thumbColor: theme.colors.background,
    trackColor: {
      false: theme.colors.baseShade3,
      true: theme.colors.primary
    },
    value: isMultipleOption,
    onValueChange: setIsMultipleOption
  })));
}
//# sourceMappingURL=PollSelection.js.map