<?php

declare(strict_types=1);

namespace App\Filament\Resources\DberpPurchaseInquiries\Pages;

use App\Filament\Resources\DberpPurchaseInquiries\Concerns\ProvidesDberpPurchaseInquiryCollaborationHeaderActions;
use App\Filament\Resources\DberpPurchaseInquiries\DberpPurchaseInquiryResource;
use App\Models\DberpPurchaseInquiry;
use Filament\Actions\EditAction;
use Filament\Resources\Pages\ViewRecord;
use Filament\Support\Enums\Width;

class ViewDberpPurchaseInquiry extends ViewRecord
{
    use ProvidesDberpPurchaseInquiryCollaborationHeaderActions;

    protected static string $resource = DberpPurchaseInquiryResource::class;

    protected Width|string|null $maxContentWidth = Width::Full;

    protected function getHeaderActions(): array
    {
        return [
            ...$this->purchaseInquiryCollaborationHeaderActions(),
            EditAction::make(),
        ];
    }

    protected function getPurchaseInquiryCollaborationRecord(): DberpPurchaseInquiry
    {
        return $this->record;
    }
}
