<?php

namespace App\Livewire;

use App\Services\FinanceRepository;
use App\Support\FinanceDataInsights;
use Livewire\Attributes\Layout;
use Livewire\Component;

#[Layout('layouts.app')]
class InsightsPage extends Component
{
    public function render(FinanceRepository $finance)
    {
        return view('livewire.insights-page', [
            'insightCards' => FinanceDataInsights::insightPageCards($finance),
            'health' => FinanceDataInsights::healthSnapshot($finance),
        ])->title((string) __('budgets.nav.insights'));
    }
}
