<?php

namespace Modules\Payment\Filament\Resources\Refunds\Pages;

use Filament\Resources\Pages\ListRecords;
use Modules\Payment\Filament\Resources\Refunds\Actions\ProcessRefundAction;
use Modules\Payment\Filament\Resources\Refunds\RefundResource;

class ListRefunds extends ListRecords
{
    protected static string $resource = RefundResource::class;

    protected function getHeaderActions(): array
    {
        // No CreateAction — a Refund only ever comes from ProcessRefundAction
        // calling RefundBookingAction, never a hand-filled create form.
        return [
            ProcessRefundAction::make(),
        ];
    }
}
