mirror of
https://github.com/immich-app/immich.git
synced 2025-11-27 00:35:16 -05:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
25 lines
541 B
Svelte
25 lines
541 B
Svelte
<script lang="ts">
|
|
import { Label, Link, Text } from '@immich/ui';
|
|
|
|
type Props = {
|
|
id: string;
|
|
title: string;
|
|
version?: string;
|
|
versionHref?: string;
|
|
class?: string;
|
|
};
|
|
|
|
const { id, title, version, versionHref, class: className }: Props = $props();
|
|
</script>
|
|
|
|
<div class={className}>
|
|
<Label size="small" color="primary" for={id}>{title}</Label>
|
|
<Text size="small" color="muted" {id}>
|
|
{#if versionHref}
|
|
<Link href={versionHref}>{version}</Link>
|
|
{:else}
|
|
{version}
|
|
{/if}
|
|
</Text>
|
|
</div>
|