import React from 'react'; import CardWithIcon from './CardWithIcon'; import { Welcome } from './Welcome'; import PersonIcon from '@mui/icons-material/Person'; import MessageIcon from '@mui/icons-material/Message'; import GroupIcon from '@mui/icons-material/Group'; import AttachFileIcon from '@mui/icons-material/AttachFile'; import { useGetList } from 'react-admin'; import { Grid } from '@mui/material'; export const Dashboard: React.FC = React.memo(() => { const { total: usersNum } = useGetList('users', { pagination: { page: 1, perPage: 1 }, }); const { total: tempUsersNum } = useGetList('users', { filter: { temporary: true }, pagination: { page: 1, perPage: 1 }, }); const { total: messageNum } = useGetList('messages', { pagination: { page: 1, perPage: 1 }, }); const { total: groupNum } = useGetList('groups', { pagination: { page: 1, perPage: 1 }, }); const { total: fileNum } = useGetList('file', { pagination: { page: 1, perPage: 1 }, }); return (