source: src/components/table/table-no-data.tsx@ 5d6f37a

main
Last change on this file since 5d6f37a was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago

add customer

  • Property mode set to 100644
File size: 762 bytes
Line 
1// @mui
2import { Theme, SxProps } from '@mui/material/styles';
3import TableRow from '@mui/material/TableRow';
4import TableCell from '@mui/material/TableCell';
5//
6import EmptyContent from '../empty-content';
7
8// ----------------------------------------------------------------------
9
10type Props = {
11 notFound: boolean;
12 sx?: SxProps<Theme>;
13};
14
15export default function TableNoData({ notFound, sx }: Props) {
16 return (
17 <TableRow>
18 {notFound ? (
19 <TableCell colSpan={12}>
20 <EmptyContent
21 filled
22 title="No Data"
23 sx={{
24 py: 10,
25 ...sx,
26 }}
27 />
28 </TableCell>
29 ) : (
30 <TableCell colSpan={12} sx={{ p: 0 }} />
31 )}
32 </TableRow>
33 );
34}
Note: See TracBrowser for help on using the repository browser.