<?php

namespace App\Filament\Resources\SuratSktmResource\Pages;

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

class ListSuratSktms extends ListRecords
{
    protected static string $resource = SuratSktmResource::class;

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