import { DataGrid } from '@mui/x-data-grid'; interface Props { rows: any, columns: any } export default function DataTable(props: Props) { return ( { console.log(updatedRow) return updatedRow }} onProcessRowUpdateError={(error)=>{ console.log(error) }} /> ); }