import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Button, Typography, Paper } from '@material-ui/core'; import { ListItem } from '../../../../ui/components/ListItem'; import ChatIcon from '@material-ui/icons/Chat'; import PhoneIcon from '@material-ui/icons/Phone'; import { PictureResponsive } from '../../../../ui/components/PictureResponsive'; const useStyles = makeStyles((theme) => ({ root: { overflowX: 'hidden', display: 'flex', flexFlow: 'row nowrap', alignItems: 'flex-start', width: '100%', marginTop: '3px', }, content: { display: 'flex', marginTop: '-10px', flexFlow: 'column nowrap', width: '100%', }, paper: { overflow: 'auto', display: 'flex', flexFlow: 'column', alignItems: 'flex', height: 'auto', background: theme.palette.background.default, marginBottom: 20, }, icon: { color: theme.palette.primary.main, }, header: { margin: 10, }, headerTypo: { margin: 5, }, desc: { padding: 10, }, })); export const SelloutItem = (listing) => { const classes = useStyles(); return (
{listing.name} {listing.number} {listing.title}
{listing.url ? ( ) : ( No image provided{' '} 🙁 )} {listing.description}
); };