<?php

namespace App\View\Components\Institution;

use App\Models\Institution\Institution;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Card extends Component {
    private Institution $institution;

    /**
     * Create a new component instance.
     */
    public function __construct(Institution $institution) {
        $this->institution = $institution;
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string {
        return view('components.institution.card', [
            'institution' => $this->institution
        ]);
    }
}
