<?php

namespace App\Filament\Resources\SuratPendatangResource\Pages;

use App\Filament\Resources\SuratPendatangResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
use Illuminate\Support\Facades\Auth;

class ListSuratPendatangs extends ListRecords
{
    protected static string $resource = SuratPendatangResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\CreateAction::make()->visible(fn (): bool => Auth::user()->role !== 'kepala_desa'),
        ];
    }
}
