// material-ui import { Box, Typography } from '@mui/material'; import MainCard from "components/MainCard"; import * as React from "react"; import { FiDataGrid } from "components/FiDataGrid"; import { GET_SYS_PARAMS } from "utils/ApiPathConst"; // ==============================|| DASHBOARD - DEFAULT ||============================== // const Table = ({onRowClick, searchCriteria}) => { const [_searchCriteria, set_searchCriteria] = React.useState(searchCriteria); React.useEffect(() => { set_searchCriteria(searchCriteria); }, [searchCriteria]); const columns = [ { field: 'name', headerName: 'Name', width: 300, }, { id: 'type', field: 'type', headerName: 'Type', width: 150, valueGetter: (params) => { return params.row.type } }, { id: 'category', field: 'category', headerName: 'Category', width: 150, }, { id: 'value', field: 'value', headerName: 'Value', flex: 1, minWidth: 400, renderCell:(params)=>{ return
} }, ]; return (