Files
Checkmate/Client/src/Pages/Uptime/Home/UptimeTable/Skeleton/index.jsx
T

47 lines
813 B
React
Raw Normal View History

2025-01-03 12:23:08 -08:00
import { Skeleton } from "@mui/material";
import DataTable from "../../../../../Components/Table";
2024-10-18 14:49:48 -04:00
const ROWS_NUMBER = 7;
const ROWS_ARRAY = Array.from({ length: ROWS_NUMBER }, (_, i) => i);
2025-01-03 12:23:08 -08:00
const TableSkeleton = () => {
/* TODO Skeleton does not follow light and dark theme */
2025-01-03 12:23:08 -08:00
const headers = [
{
id: "name",
content: "Host",
render: () => <Skeleton />,
},
{
id: "status",
content: "Status",
render: () => <Skeleton />,
},
{
id: "responseTime",
content: "Response Time",
render: () => <Skeleton />,
},
{
id: "type",
content: "Type",
render: () => <Skeleton />,
},
{
id: "actions",
content: "Actions",
render: () => <Skeleton />,
},
];
2024-10-18 14:49:48 -04:00
return (
2025-01-03 12:23:08 -08:00
<DataTable
headers={headers}
data={ROWS_ARRAY}
/>
2024-10-18 14:49:48 -04:00
);
};
2025-01-03 12:23:08 -08:00
export { TableSkeleton };