mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-27 06:33:18 +00:00
18 lines
493 B
PHP
18 lines
493 B
PHP
@blaze
|
|
|
|
@props([
|
|
'field' => 'date',
|
|
'format' => null,
|
|
])
|
|
|
|
@php
|
|
$format = is_array($format) ? \Illuminate\Support\Js::encode($format) : $format;
|
|
@endphp
|
|
|
|
<div {{ $attributes->class([
|
|
'bg-zinc-50 border-b border-zinc-200 dark:bg-zinc-600 dark:border-zinc-500 flex justify-between items-center p-2',
|
|
'text-xs font-medium [:where(&)]:text-zinc-800 dark:[:where(&)]:text-zinc-100'
|
|
]) }}>
|
|
<slot field="{{ $field }}" @if ($format) format="{{ $format }}" @endif></slot>
|
|
</div>
|