hide Tabs based on condition

I've seen other component with methods hidden() and visible() which are very useful tbh, but the Tab component lacks of this methods, whats the workaround to hide Tabs based on conditions?
Solution
I think you can use a closure in tabs():
Tabs::make('My Tabs')
    ->tabs(function ($get) {
        if ($get('my_field') === 'value') {
            return [
                /* some tabs */
            ];
        }
        
        return [
            /* other tabs */
        ];
    })
Was this page helpful?