import React, { Fragment } from 'react' import { BooleanField, Datagrid, DateField, Filter, List, NumberField, SearchInput, Show, SimpleShowLayout, TextField, TextInput, SimpleList } from 'react-admin' import { useMediaQuery } from '@material-ui/core' import { BitrateField, DurationField, Pagination, Title } from '../common' import AddToQueueButton from './AddToQueueButton' import PlayButton from './PlayButton' const SongFilter = (props) => ( ) const SongBulkActionButtons = (props) => ( ) const SongDetails = (props) => { return ( ) } const SongList = (props) => { const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs')) return ( } sort={{ field: 'title', order: 'ASC' }} exporter={false} bulkActionButtons={} filters={} perPage={15} pagination={} > {isXsmall ? ( ( <> {record.title} )} secondaryText={(record) => record.artist} tertiaryText={(record) => ( )} linkType={false} /> ) : ( }> )} ) } export default SongList