<?php

namespace App\Listeners;

use App\Modules\SalesChannels\VehiclesInVideo;

class AddVehiclesInVideoDealershipFields
{
    public function __construct(private readonly VehiclesInVideo $vehiclesInVideo)
    {
    }

    public function handle($event)
    {
        if ($this->vehiclesInVideo->enabled() == false) {
            return [];
        }
        return $this->vehiclesInVideo->dealershipAdditionalDataFields();
    }
}
