WIP
This commit is contained in:
21
app/View/Components/DrawerTrigger.php
Normal file
21
app/View/Components/DrawerTrigger.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class DrawerTrigger extends Component
|
||||
{
|
||||
|
||||
public function __construct(public string $target, public string $action)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.drawer-trigger');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user