import { withStyles } from '@material-ui/core/styles'; import gql from 'graphql-tag'; import React from 'react'; import Author from '../Author'; import Date from '../Date'; const styles = theme => ({ main: { ...theme.typography.body2, }, }); const SetStatus = ({ op, classes }) => { return (
{op.status.toLowerCase()} this
); }; SetStatus.fragment = gql` fragment SetStatus on Operation { ... on SetStatusOperation { date author { name email } status } } `; export default withStyles(styles)(SetStatus);