mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-16 18:23:03 +03:00
Co-authored-by: Kyle Mendell <kmendell@outlook.com> Co-authored-by: Elias Schneider <login@eliasschneider.com>
12 lines
380 B
Svelte
12 lines
380 B
Svelte
<script lang="ts">
|
|
import { m } from '$lib/paraglide/messages';
|
|
import { mode } from 'mode-watcher';
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
let { ...props }: HTMLAttributes<HTMLImageElement> = $props();
|
|
|
|
const isDarkMode = $derived($mode === 'dark');
|
|
</script>
|
|
|
|
<img {...props} src="/api/application-configuration/logo?light={!isDarkMode}" alt={m.logo()} />
|