2023-02-10 23:01:35 +01:00
|
|
|
<script lang="ts">
|
2024-03-13 12:14:45 -05:00
|
|
|
import logoDarkUrl from '$lib/assets/immich-logo-inline-dark.svg';
|
|
|
|
|
import logoLightUrl from '$lib/assets/immich-logo-inline-light.svg';
|
|
|
|
|
import logoNoText from '$lib/assets/immich-logo.svg';
|
|
|
|
|
import { Theme } from '$lib/constants';
|
|
|
|
|
import { colorTheme } from '$lib/stores/preferences.store';
|
2024-03-15 20:53:58 +01:00
|
|
|
import type { HTMLImgAttributes } from 'svelte/elements';
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
interface $$Props extends HTMLImgAttributes {
|
|
|
|
|
noText?: boolean;
|
|
|
|
|
draggable?: boolean;
|
|
|
|
|
}
|
2023-02-10 23:01:35 +01:00
|
|
|
|
2024-03-13 12:14:45 -05:00
|
|
|
export let noText = false;
|
2023-07-01 00:50:47 -04:00
|
|
|
export let draggable = false;
|
2023-02-10 23:01:35 +01:00
|
|
|
</script>
|
|
|
|
|
|
2024-03-13 12:14:45 -05:00
|
|
|
<img
|
|
|
|
|
src={noText ? logoNoText : $colorTheme.value == Theme.LIGHT ? logoLightUrl : logoDarkUrl}
|
|
|
|
|
alt="Immich Logo"
|
|
|
|
|
{draggable}
|
|
|
|
|
{...$$restProps}
|
|
|
|
|
/>
|