<?php

namespace App\Filament\Resources\User\UserMetaResource\Pages;

use Filament\Actions\Contracts\HasActions;
use App\Filament\PageList;
use App\Filament\Resources\User\UserMetaResource;
use App\Models\UserMeta;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
use Illuminate\Database\Eloquent\Builder;

class ListUserMetas extends PageList implements HasActions
{
    protected static string $resource = UserMetaResource::class;

    protected function getHeaderActions(): array
    {
        return [
//            Actions\CreateAction::make(),
        ];
    }

    protected function getTableQuery(): Builder
    {
        return UserMeta::query()->whereIn('meta_key', array_keys(UserMeta::$metaKeys));
    }


}
