<?php

namespace App\Filament\Resources\PolicyVersionResource\Pages;

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

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

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

        parent::mount();
    }

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