import * as React from 'react';
import TextField from '@mui/material/TextField';
import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
import { styled, useTheme } from '@mui/material/styles';
import Table from '@mui/material/Table';
import TableBody from '@mui/material/TableBody';
import TableCell, { tableCellClasses } from '@mui/material/TableCell';
import TableContainer from '@mui/material/TableContainer';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import Paper from '@mui/material/Paper';
import Box from '@mui/material/Box';
import { StatusLabel } from "../../Components/Label/";
const StyledTableCell = styled(TableCell)(({ theme }) => ({
[`&.${tableCellClasses.head}`]: {
backgroundColor: theme.palette.action.hover,
color: theme.palette.common.black,
},
[`&.${tableCellClasses.body}`]: {
fontSize: 14,
},
}));
const StyledTableRow = styled(TableRow)(({ theme }) => ({
'&:nth-of-type(odd)': {
backgroundColor: theme.palette.action.hover,
},
'&:nth-of-type(even)': {
backgroundColor: theme.palette.common.white,
},
'&:last-child td, &:last-child th': {
border: 0,
},
}));
const filterOptions = createFilterOptions({
matchFrom: 'start',
stringify: (option) => option.title,
});
const top100Films = [
{ title: 'The Shawshank Redemption', year: 1994 },
{ title: 'The Dark Knight', year: 2008 },
{ title: '12 Angry Men', year: 1957 },
];
function createData(name, date, message) {
return { name, date, message };
}
const rows = [
createData(, '2024-03-14 21:41:09', 'HTTP 350 - NOK'),
createData(, '2024-03-14 21:41:09', 'timeout of 48000ms exceeded'),
createData(, '2024-03-14 21:41:09', 'timeout of 48000ms exceeded'),
createData(, '2024-03-14 21:41:09', 'timeout of 48000ms exceeded'),
createData(, '2024-03-14 21:41:09', 'HTTP 350 - NOK'),
];
export default function CustomizedTables() {
const theme = useTheme();
return (
Status
Date & Time
Message
{rows.map((row, index) => (
{row.name}
{row.date}
{row.message}
))}
);
}
function Filter() {
return (
option.title}
filterOptions={filterOptions}
sx={{ width: 300 }}
disableClearable // This disables the clearable (x) button
renderInput={(params) => (
)}
/>
);
}