<?php

namespace App\Components\Dsar;

use App\Models\Contact\Hub\ContactMessageAttachment;
use App\Models\Dsar\Dsar;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Livewire\Component;

class EvidenceViewerPage extends Component
{
    use AuthorizesRequests;

    public Dsar $dsar;
    public ContactMessageAttachment $attachment;

    public function mount(Dsar $dsar, ContactMessageAttachment $attachment): void
    {
        $this->authorize('dsars.view');
    }

    public function render()
    {
        return view('components.dsar.evidence-viewer-page')
            ->layout('layouts.dashboard');
    }
}
