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