Custom enable/disable select rows MUI-DataTable

I have a Mui-DataTable and I need to personalize the rows selection. In the documentation, I found the “isRowSelectable” function. But this method returns me only two parameters: dataIndex and selectedRows. In my table, I have a column called status, with two states: active and inactive. When the row status is inactive, I need to disable the row selection. Unfortunately, the “isRowSelectable” API doesn’t return my data to compare the status and, so, enable or disable my row selection.