"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _react = require("react");
var _style = require("../style");
const PollBar = ({
  myVote,
  length
}) => {
  const styles = (0, _style.useStyles)();
  const myVoteBarStyle = myVote && styles.myVoteBar;
  const barLengthStyle = {
    width: `${length}%`
  };
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.backgroundBar
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: [styles.innerBar, myVoteBarStyle, barLengthStyle]
  }));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(PollBar);
//# sourceMappingURL=PollBar.js.map