<?php

namespace App\Filament\Resources\InviteLayouts\Pages;

use App\Filament\Resources\InviteLayouts\InviteLayoutResource;
use Filament\Actions\DeleteAction;
use Filament\Resources\Pages\EditRecord;

class EditInviteLayout extends EditRecord
{
    protected static string $resource = InviteLayoutResource::class;

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

    protected function mutateFormDataBeforeSave(array $data): array
    {
        return InviteLayoutResource::normalizePayload($data);
    }
}
