skyouc
4 天以前 27f59f44345d044967e2048f09dbd704f90ce3db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, { useState, useRef, useEffect, useMemo } from "react";
import {
    useTranslate,
} from 'react-admin';
import {
    Box,
    Button,
    Card,
    CardContent,
    Stack,
    Typography,
} from '@mui/material';
 
const ListEmptyTip = (props) => {
    const { tip, ...rest } = props;
    const translate = useTranslate();
 
    return (
        <>
            <Box mt={3} ml={2}>
                <Typography
                    variant="subtitle1"
                    color="textPrimary"
                >
                    {tip || translate('common.list.empty.tip')}
                </Typography>
            </Box>
        </>
    )
}
 
export default ListEmptyTip;