<?php

namespace App\Filament\Resources\HouseUserResource\Pages;

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

class EditHouseUser extends EditRecord
{
    protected static string $resource = HouseUserResource::class;

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

     public function getTitle(): string
    {
        return 'Editar Hogar cliente';
    }


    // protected function getHeaderActions(): array
    // {
    //     return [
    //         Actions\Action::make('inactivar')
    //             ->label('Eliminar')
    //             ->icon('heroicon-o-trash')
    //             ->requiresConfirmation()
    //             ->color('danger')
    //             ->action(function () {
    //                 $record = $this->getRecord();
    //                 $record->status = 0;
    //                 $record->save();

    //                 $this->redirect(HouseUserResource::getUrl());
    //             }),
    //     ];
    // }
}
