<?php

namespace App\Mail;

use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;

class ResetPasswordMail extends Mailable
{
    public function __construct(
        public readonly string $resetUrl,
        public readonly string $userName,
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(subject: 'Animexe — Şifre Sıfırlama');
    }

    public function content(): Content
    {
        return new Content(view: 'emails.reset-password');
    }
}
