<?php

declare(strict_types=1);

namespace App\Filament\Resources\Vacations\Pages;

use App\Exports\VacationsExport;
use App\Filament\Resources\Vacations\VacationResource;
use App\Filament\Support\ExportExcelAction;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;

class ListVacations extends ListRecords
{
    protected static string $resource = VacationResource::class;

    protected function getHeaderActions(): array
    {
        return [
            ExportExcelAction::make('export', VacationsExport::class, 'vacations.xlsx'),
            CreateAction::make(),
        ];
    }
}
