<?php

declare(strict_types=1);

namespace App\Filament\Resources\DberpWarehouses\Pages;

use App\Filament\Resources\Concerns\InteractsWithDberpRegionAddress;
use App\Filament\Resources\DberpWarehouses\DberpWarehouseResource;
use Filament\Actions\DeleteAction;
use App\Filament\Resources\Pages\EditRecord;

class EditDberpWarehouse extends EditRecord
{
    use InteractsWithDberpRegionAddress;

    protected static string $resource = DberpWarehouseResource::class;

    protected function mutateFormDataBeforeFill(array $data): array
    {
        return $this->mutateDberpRegionFormDataBeforeFill($data);
    }

    protected function mutateFormDataBeforeSave(array $data): array
    {
        return $this->mutateDberpRegionFormDataBeforePersist($data);
    }

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