{#if error}
{error}
Schliessen
{:else}
{#if recording}
{formatRecordingTime(recordingTime)}
{/if} {/if}
{#if !error} {#if !recording}
(mode = 'photo')} data-testid="camera-mode-photo" class="rounded-full px-4 py-1 text-sm font-medium transition {mode === 'photo' ? 'bg-white text-gray-900' : 'text-white/70 hover:text-white active:text-white'}" > Foto
(mode = 'video')} data-testid="camera-mode-video" class="rounded-full px-4 py-1 text-sm font-medium transition {mode === 'video' ? 'bg-white text-gray-900' : 'text-white/70 hover:text-white active:text-white'}" > Video
{/if}
{#if mode === 'photo'}
{:else if recording}
{:else}
{/if}
{#if recording}
{:else}
{/if}
{/if}