<?php

declare(strict_types=1);

namespace App\Filament\Resources\DisciplinaryReports\Pages;

use App\Exports\ReportsExport;
use App\Filament\Resources\DisciplinaryReports\DisciplinaryReportResource;
use App\Filament\Support\ExportExcelAction;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;

class ListDisciplinaryReports extends ListRecords
{
    protected static string $resource = DisciplinaryReportResource::class;

    protected function getHeaderActions(): array
    {
        return [
            ExportExcelAction::make('export', ReportsExport::class, 'disciplinary-reports.xlsx'),
            CreateAction::make(),
        ];
    }
}
