import classNames from 'classnames'; import React from 'react'; 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 (
    ); }; export default PollPreview;