mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-07 13:13:09 +02:00
32 lines
782 B
PHP
32 lines
782 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Actions\Storage\Base;
|
|
|
|
use App\Actions\Storage\Base\DeleteAction as BaseDeleteAction;
|
|
use App\Contracts\Actions\Storage\StorageAction as StorageActionContract;
|
|
use App\Filament\Actions\Storage\StorageAction;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
abstract class DeleteAction extends StorageAction
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->color('danger');
|
|
|
|
$this->icon(Heroicon::Trash);
|
|
}
|
|
|
|
/**
|
|
* Get the underlying storage action.
|
|
*
|
|
* @param array<string, mixed> $data
|
|
* @return BaseDeleteAction
|
|
*/
|
|
abstract protected function storageAction(?Model $record, array $data): StorageActionContract;
|
|
}
|