How do I filter my data rendered in tabular form with respect to its active/inactive users, where the data is coming from an API loaded to state?

If you need any additional info please ask me.
PLEASE HELP

What code have you tried so far?