import { DateField, List, Pagination, SizeField, getStoredPerPage, useResourceRefresh, } from '../common/index' import { Datagrid, TextField, downloadCSV, Filter, ReferenceInput, useTranslate, SelectInput, } from 'react-admin' import jsonExport from 'jsonexport/dist' import DeleteMissingFilesButton from './DeleteMissingFilesButton.jsx' import MissingListActions from './MissingListActions.jsx' import React from 'react' const exporter = (files) => { const filesToExport = files.map((file) => { const { path } = file return { path } }) jsonExport(filesToExport, { includeHeaders: false }, (err, csv) => { downloadCSV(csv, 'navidrome_missing_files') }) } const MissingFilesFilter = (props) => { const translate = useTranslate() return ( ({ name: [searchText] })} alwaysOn > ) } const BulkActionButtons = (props) => ( <> ) const missingPerPageOptions = [50, 100, 200] const MissingPagination = (props) => ( ) const MissingFilesList = (props) => { useResourceRefresh('song') return ( } filters={} bulkActionButtons={} perPage={getStoredPerPage('missing', missingPerPageOptions)} pagination={} > ) } export default MissingFilesList