import { View } from 'react-native';
import { memo } from 'react';
import { useStyles } from '../style';
const PollBar = ({
  myVote,
  length
}) => {
  const styles = useStyles();
  const myVoteBarStyle = myVote && styles.myVoteBar;
  const barLengthStyle = {
    width: `${length}%`
  };
  return /*#__PURE__*/React.createElement(View, {
    style: styles.backgroundBar
  }, /*#__PURE__*/React.createElement(View, {
    style: [styles.innerBar, myVoteBarStyle, barLengthStyle]
  }));
};
export default /*#__PURE__*/memo(PollBar);
//# sourceMappingURL=PollBar.js.map