<?php

namespace App\Filament\App\Resources\UserResource\Pages;

use App\Filament\App\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Components\Tab;
use Filament\Resources\Pages\ListRecords;
use Illuminate\Database\Eloquent\Builder;

class ListUsers extends ListRecords
{
    protected static string $resource = UserResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\CreateAction::make(),
        ];
    }
    // public function getTabs(): array
    // {
    //     return [
    //         'Semua' => Tab::make(),
    //         'Internal' => Tab::make()
    //             ->modifyQueryUsing(fn(Builder $query) => $query->where('is_guest', 'Internal')),
    //         'External' => Tab::make()
    //             ->modifyQueryUsing(fn(Builder $query) => $query->where('is_guest', 'External')),
    //     ];
    // }
}
