import React from 'react'; import { createStyles, Theme, makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/CardMedia'; import Avatar from '@material-ui/core/Avatar'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import MoreVertIcon from '@material-ui/icons/MoreVert'; import Skeleton from '@material-ui/lab/Skeleton'; const useStyles = makeStyles((theme: Theme) => createStyles({ card: { maxWidth: 345, margin: theme.spacing(2), }, media: { height: 190, }, }), ); interface MediaProps { loading?: boolean; } function Media(props: MediaProps) { const { loading = false } = props; const classes = useStyles(); return ( ) : ( ) } action={ loading ? null : ( ) } title={ loading ? ( ) : ( 'Ted' ) } subheader={loading ? : '5 hours ago'} /> {loading ? ( ) : ( )} {loading ? ( ) : ( { "Why First Minister of Scotland Nicola Sturgeon thinks GDP is the wrong measure of a country's success:" } )} ); } export default function Facebook() { return (
); }