import classNames from 'classnames'; import React from 'react'; import { Stack } from 'soapbox/components/ui'; import { Poll as PollEntity, PollOption as PollOptionEntity } from 'soapbox/types/entities'; interface IPollPreview { poll: PollEntity, } // {/*
  • // //
  • */} const PollPreview: React.FC = ({ poll }) => { const renderOption = (option: PollOptionEntity, index: number) => { const showResults = poll.voted || poll.expired; return ( ); }; if (!poll) { return null; } return ( {poll.options.map((option, i) => renderOption(option, i))} ); }; export default PollPreview;