<?php

namespace Botble\Contact\Events;

use Botble\Base\Events\Event;
use Botble\Base\Models\BaseModel;
use Illuminate\Queue\SerializesModels;

class SentContactEvent extends Event
{
    use SerializesModels;

    public function __construct(public bool|BaseModel|null $data, public ?string $locale = null)
    {
        $this->locale = $locale ?: app()->getLocale();
    }
}
