<?php

namespace App\Filament\Resources\SuratKeteranganSkckResource\Pages;

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

class ListSuratKeteranganSkcks extends ListRecords
{
    protected static string $resource = SuratKeteranganSkckResource::class;

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