How to Hide/Show Bulk Action based on active Tab?

I have tried as below:
 Tables\Actions\BulkAction::make('bulk_revert_archive')
                        ->label('Remove From Archived')
                        ->visible(isset(request()->query()['activeTab']) && request()->query()['activeTab'] === "is_archived")
                        ->requiresConfirmation()

I want visible true when activeTab= "is_archived" for reset of tabs, don't want to display above action to bulk action.
image.png
Was this page helpful?