<?php

namespace App\Filament\SuperAdmin\Pages;

use App\Filament\Clusters\DailyOps\DailyOpsCluster;
use App\Filament\Widgets\IntegrationsHealthWidget;
use BackedEnum;
use Filament\Pages\Page;
use UnitEnum;

class IntegrationsHealthDashboard extends Page
{
    protected string $view = 'filament.super-admin.pages.integrations-health-dashboard';

    protected static ?string $cluster = DailyOpsCluster::class;

    protected static null|string|BackedEnum $navigationIcon = 'heroicon-o-link';

    protected static null|string|UnitEnum $navigationGroup = null;

    protected static ?int $navigationSort = 15;

    public static function getNavigationGroup(): UnitEnum|string|null
    {
        return __('admin.nav.infrastructure');
    }

    public static function getNavigationLabel(): string
    {
        return __('admin.integrations_health.navigation.label');
    }

    protected function getHeaderWidgets(): array
    {
        return [
            IntegrationsHealthWidget::class,
        ];
    }
}
