<?php

namespace App\Filament\Admin\Resources\PerformanceCards\Resources\Initiatives\Pages;

use App\Filament\Admin\Resources\PerformanceCards\Resources\Initiatives\InitiativeResource;
use App\Filament\Admin\Resources\PerformanceCards\Resources\Initiatives\Resources\ProjectCharters\ProjectCharterResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ManageRelatedRecords;
use Filament\Tables\Table;

class ManageProjectCharters extends ManageRelatedRecords
{
    protected static string $resource = InitiativeResource::class;

    protected static string $relationship = 'charters';

    protected static ?string $relatedResource = ProjectCharterResource::class;

    public function table(Table $table): Table
    {
        return $table
            ->headerActions([
                CreateAction::make(),
            ]);
    }
}
