<?php

namespace App\Http\Controllers\Admin\Ranch;

use App\Http\Controllers\Controller;
use App\Services\RanchAlertCenterService;
use Inertia\Inertia;
use Inertia\Response;

class AlertCenterPageController extends Controller
{
    public function __construct(
        private readonly RanchAlertCenterService $alertCenterService,
    ) {}

    public function index(): Response
    {
        return Inertia::render('Ranch/Alerts/Index', [
            'alerts' => $this->alertCenterService->generate(),
        ]);
    }
}
