<?php

namespace App\Filament\Resources\RenewalResource\Pages;

use App\Filament\Resources\RenewalResource;
use Filament\Actions;
use Filament\Resources\Pages\ViewRecord;

class ViewRenewal extends ViewRecord
{
    protected static string $resource = RenewalResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\Action::make('download_quote')
                ->label('Descargar Cotización')
                ->icon('heroicon-o-arrow-down-tray')
                ->color('gray')
                ->url(fn () => route('quote.renewal', $this->record))
                ->openUrlInNewTab(),

            Actions\EditAction::make(),
        ];
    }
}
