import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Poll } from '../types'; import PollCard from '../PollCard/PollCard'; interface PropTypes { polls: Poll[], } const usedStyles = makeStyles(theme => ({ feed: { position: 'relative', maxWidth: theme.spacing(75), margin: '0 auto' } })); const Feed: React.FC = ({ polls }) => { const classes = usedStyles(); return (
{ polls.map(poll => ) }
); }; export default Feed;