@props(['user'])
@php($hasText = str_contains((string) $attributes->get('class'), 'text-'))
@if ($user->avatar_url)
merge(['class' => 'shrink-0 rounded-full object-cover ring-2 ring-white/10']) }}>
@else
merge(['class' => 'inline-flex shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-brand-400 to-orange-500 font-semibold text-ink-950'.($hasText ? '' : ' text-xs')]) }}>{{ $user->initials }}
@endif