import React from "react"; import { Datagrid, DateField, List, NumberField, Pagination, ReferenceField, Show, Tab, TabbedShowLayout, TextField, useTranslate, } from "react-admin"; import PageviewIcon from "@mui/icons-material/Pageview"; import ReportIcon from "@mui/icons-material/Warning"; import ViewListIcon from "@mui/icons-material/ViewList"; const date_format = { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", }; const ReportPagination = () => ( ); export const ReportShow = props => { const translate = useTranslate(); return ( } > } path="detail" > ); }; export const ReportList = props => ( } sort={{ field: "received_ts", order: "DESC" }} > ); const resource = { name: "reports", icon: ReportIcon, list: ReportList, show: ReportShow, }; export default resource;