import React from 'react' import { BooleanField, Datagrid, Filter, DateField, List, SearchInput, SimpleList, TextField } from 'react-admin' import { useMediaQuery } from '@material-ui/core' const UserFilter = (props) => ( ) const UserList = (props) => { const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs')) return ( } > {isXsmall ? ( record.name} tertiaryText={(record) => (record.isAdmin ? '[admin]️' : '')} /> ) : ( )} ) } export default UserList