<?php

namespace App\Filament\Resources\UserResource\Pages;

use App\Filament\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditUser extends EditRecord
{
    protected static string $resource = UserResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\DeleteAction::make()
                ->label('删除')
                ->modalHeading('删除用户')
                ->modalDescription('确定要删除此用户吗？此操作无法撤销。')
                ->modalSubmitActionLabel('确认删除')
                ->modalCancelActionLabel('取消'),
        ];
    }

    protected function getSavedNotificationTitle(): ?string
    {
        return '用户更新成功';
    }
}
