<?php

namespace App\Filament\Resources\PolicyVersionResource\Pages;

use App\Filament\Resources\PolicyVersionResource;
use App\Support\Filament\CanonicalAdminEnvironmentFilterState;
use Filament\Resources\Pages\ListRecords;

class ListPolicyVersions extends ListRecords
{
    protected static string $resource = PolicyVersionResource::class;

    public function mount(): void
    {
        app(CanonicalAdminEnvironmentFilterState::class)->sync(
            $this->getTableFiltersSessionKey(),
            request: request(),
            environmentFilterName: null,
        );

        parent::mount();
    }

    protected function getHeaderActions(): array
    {
        return [];
    }
}
