mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-16 01:11:16 +03:00
11 lines
330 B
Svelte
11 lines
330 B
Svelte
<script lang="ts">
|
|
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="Logo" />
|