How to access $table current `group by` filter? So I can dynamically hide columns
When I have the group by
status
I want to make the columns hidden like this
3 Replies
If I disable the grouping, or switch it to something else. for the status to show up

I am trying diffrent stuff in https://filamentphp.com/docs/3.x/tables/filters#injecting-the-current-filter-instance
But no idea honstly how to access the $table->current group
If I am missing something in the docs, would be very helpful if you can point me in that direction
If something like this is possible