import React from 'react' import { Datagrid, TextField, DateField, FunctionField, ReferenceField, } from 'react-admin' import { useMediaQuery } from '@material-ui/core' import { SimpleList, List } from '../common' const PlayerList = (props) => { const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs')) return ( {isXsmall ? ( r.client} secondaryText={(r) => r.userName} tertiaryText={(r) => (r.maxBitRate ? r.maxBitRate : '-')} /> ) : ( (r.maxBitRate ? r.maxBitRate : '-')} /> )} ) } export default PlayerList