mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
15 lines
442 B
PHP
15 lines
442 B
PHP
@aware([ 'variant' ])
|
|
|
|
@props([
|
|
'variant' => 'check',
|
|
])
|
|
|
|
@php
|
|
// This prevents variants picked up by `@aware()` from other wrapping components like flux::modal from being used here...
|
|
$variant = $variant !== 'check' && Flux::componentExists('select.indicator.variants.' . $variant)
|
|
? $variant
|
|
: 'check';
|
|
@endphp
|
|
|
|
<flux:delegate-component :component="'select.indicator.variants.' . $variant">{{ $slot }}</flux:delegate-component>
|