<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class PhotoboothUploaderDownload extends Mailable implements ShouldQueue
{
    use Queueable, SerializesModels;

    /**
     * @param  array{windows:string, macos:string, linux:string}  $links
     */
    public function __construct(
        public string $recipientName,
        public string $eventName,
        public array $links,
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(
            subject: __('emails.photobooth_uploader.subject', [
                'event' => $this->eventName,
            ]),
        );
    }

    public function content(): Content
    {
        return new Content(
            view: 'emails.photobooth-uploader-download',
            with: [
                'recipientName' => $this->recipientName,
                'eventName' => $this->eventName,
                'links' => $this->links,
            ],
        );
    }

    public function attachments(): array
    {
        return [];
    }
}
