<?php

namespace App\Domains\Forms\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class EventFormResource extends JsonResource
{
    /** @return array<string, mixed> */
    public function toArray(Request $request): array
    {
        return [
            'social_media' => SocialMediaOptionResource::collection(
                $this->resource['social_media']
            ),
        ];
    }
}
