@props([
    'context' => 'default',
    'height' => null,
    'alt' => null,
])

@php
    $resolvedHeight = $height
        ?? config('theme.logo.heights.'.$context)
        ?? config('theme.logo.heights.default', 40);
    $resolvedAlt = $alt ?? config('theme.logo.alt', config('app.name'));
    $src = asset(config('theme.logo.path'));
@endphp

<img
    src="{{ $src }}"
    alt="{{ $resolvedAlt }}"
    style="height: {{ $resolvedHeight }}px; width: auto;"
    {{ $attributes->class(['app-logo']) }}
>
