<?php

declare(strict_types=1);

namespace App\Filament\Resources\Wiki\Image\Pages;

use App\Concerns\Filament\HasTabs;
use App\Filament\Resources\Base\BaseListResources;
use App\Filament\Resources\Wiki\ImageResource;
use App\Filament\Tabs\Image\ImageUnlinkedTab;
use Filament\Schemas\Components\Tabs\Tab;

class ListImages extends BaseListResources
{
    use HasTabs;

    protected static string $resource = ImageResource::class;

    /**
     * Get the tabs available.
     *
     * @return array<string, Tab>
     */
    public function getTabs(): array
    {
        return ['all' => Tab::make()] + $this->toArray([
            ImageUnlinkedTab::class,
        ]);
    }
}
