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