mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 03:06:03 -05:00
31 lines
687 B
PHP
31 lines
687 B
PHP
<?php
|
|
|
|
namespace App\View\Components\Admin\Tools;
|
|
|
|
use App\Http\Responses\Api\Player\Inbox\InboxMessageReward;
|
|
use Closure;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\View\Component;
|
|
|
|
class ItemSelector extends Component
|
|
{
|
|
/** @var InboxMessageReward[] */
|
|
public array $rewards;
|
|
|
|
/**
|
|
* Create a new component instance.
|
|
*/
|
|
public function __construct(array $rewards = [], public bool $allowEdit = true)
|
|
{
|
|
$this->rewards = $rewards;
|
|
}
|
|
|
|
/**
|
|
* Get the view / contents that represent the component.
|
|
*/
|
|
public function render(): View|Closure|string
|
|
{
|
|
return view('components.admin.tools.item-selector');
|
|
}
|
|
}
|