<?php

namespace App\Components\Dsar;

use App\Models\Document\Document;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Livewire\Component;

class DocumentEvidenceViewerPage extends Component
{
    use AuthorizesRequests;

    public Document $document;

    public function mount(Document $document): void
    {
        $this->authorize('dsars.view');
    }

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