@props(['size' => 'default', 'variant' => 'full'])

@php
$variants = [
    'full' => 'logo.svg',
    'reversed' => 'logo-reversed.svg',
    'mono' => 'logo-mono.svg',
];
$logoFile = $variants[$variant] ?? $variants['full'];
@endphp

@if(file_exists(public_path('images/' . $logoFile)))
    <img
        src="{{ asset('images/' . $logoFile) }}"
        alt="{{ __('LIBRA for Rights') }}"
        @class([
            'h-8' => $size === 'small',
            'h-12' => $size === 'default',
            'h-16' => $size === 'large',
        ])
    />
@else
    <span @class([
        'font-bold text-off-white',
        'text-lg' => $size === 'small',
        'text-2xl' => $size === 'default',
        'text-3xl' => $size === 'large',
    ])>LIBRA</span>
@endif
