mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-20 14:20:54 +00:00
32 lines
737 B
PHP
32 lines
737 B
PHP
<?php
|
|
|
|
namespace FireflyIII\View\Components\Elements;
|
|
|
|
use Closure;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\View\Component;
|
|
|
|
class CardHeaderWithMenu extends Component
|
|
{
|
|
public string $cardTitle;
|
|
public string $route;
|
|
public string $linkTitle;
|
|
/**
|
|
* Create a new component instance.
|
|
*/
|
|
public function __construct(string $cardTitle, string $route, string $linkTitle)
|
|
{
|
|
$this->cardTitle = $cardTitle;
|
|
$this->route = $route;
|
|
$this->linkTitle = $linkTitle;
|
|
}
|
|
|
|
/**
|
|
* Get the view / contents that represent the component.
|
|
*/
|
|
public function render(): View|Closure|string
|
|
{
|
|
return view('components.elements.card-header-with-menu');
|
|
}
|
|
}
|