import { Box, Typography, useTheme } from "@mui/material"; import { DataGrid } from "@mui/x-data-grid"; import { tokens } from "../../theme"; import { mockDataTeam } from "../../data/mockData"; import AdminPanelSettingsOutlinedIcon from "@mui/icons-material/AdminPanelSettingsOutlined"; import LockOpenOutlinedIcon from "@mui/icons-material/LockOpenOutlined"; import SecurityOutlinedIcon from "@mui/icons-material/SecurityOutlined"; import Header from "../../components/Header"; const Team = () => { const theme = useTheme(); const colors = tokens(theme.palette.mode); const columns = [ { field: "id", headerName: "ID" }, { field: "name", headerName: "Name", flex: 1, cellClassName: "name-column--cell", }, { field: "age", headerName: "Age", type: "number", headerAlign: "left", align: "left", }, { field: "phone", headerName: "Phone Number", flex: 1, }, { field: "email", headerName: "Email", flex: 1, }, { field: "accessLevel", headerName: "Access Level", flex: 1, renderCell: ({ row: { access } }) => { return ( {access === "admin" && } {access === "manager" && } {access === "user" && } {access} ); }, }, ]; return (
); }; export default Team;