Sorry, first of all, this is not an issue.
I would like to know if there is a way to pass the row index to the expandedArea renderer.
P.S. I tried adding the index to the data before passing the data prop to ToolkitProvider, but it doesn't work when I sort the table. It will work on the first load but not after sorting.