murdercode/yaTTA

View on GitHub
app/View/Components/Atoms/LightIndicator.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace App\View\Components\Atoms;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class LightIndicator extends Component
{
    public bool $isPrimary;

    /**
     * Create a new component instance.
     */
    public function __construct(bool $isPrimary = true)
    {
        $this->isPrimary = $isPrimary;
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        return view('components.atoms.light-indicator');
    }
}