<?php

declare(strict_types=1);

namespace App\Filament\Resources\Employees\Pages;

use App\Exports\EmployeesExport;
use App\Filament\Resources\Employees\EmployeeResource;
use App\Filament\Support\ExportExcelAction;
use App\Filament\Support\ExportPdfAction;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;

class ListEmployees extends ListRecords
{
    protected static string $resource = EmployeeResource::class;

    protected function getHeaderActions(): array
    {
        return [
            ExportExcelAction::make('export', EmployeesExport::class, 'employees.xlsx'),
            ExportPdfAction::employeeList(),
            CreateAction::make(),
        ];
    }
}
