<?php

namespace App\Filament\Resources\ClientResource\Pages;

use App\Filament\Exports\ClientExporter;
use App\Filament\Resources\ClientResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListClients extends ListRecords
{
    protected static string $resource = ClientResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\ExportAction::make('Export clients')
            ->exporter(ClientExporter::class)
            ->formats([
                Actions\Exports\Enums\ExportFormat::Csv,
            ]),
            Actions\CreateAction::make()->slideOver(),
        ];
    }
}
