Files
digital-data-react-mui-temp…/src/sections/user/table-no-data.tsx
2025-07-21 14:55:22 +02:00

33 lines
980 B
TypeScript

import type { TableRowProps } from '@mui/material/TableRow';
import Box from '@mui/material/Box';
import TableRow from '@mui/material/TableRow';
import TableCell from '@mui/material/TableCell';
import Typography from '@mui/material/Typography';
// ----------------------------------------------------------------------
type TableNoDataProps = TableRowProps & {
searchQuery: string;
};
export function TableNoData({ searchQuery, ...other }: TableNoDataProps) {
return (
<TableRow {...other}>
<TableCell align="center" colSpan={7}>
<Box sx={{ py: 15, textAlign: 'center' }}>
<Typography variant="h6" sx={{ mb: 1 }}>
Not found
</Typography>
<Typography variant="body2">
No results found for &nbsp;
<strong>&quot;{searchQuery}&quot;</strong>.
<br /> Try checking for typos or using complete words.
</Typography>
</Box>
</TableCell>
</TableRow>
);
}