mirror of
https://github.com/ershisan99/coolify.git
synced 2026-02-04 21:02:05 +00:00
16 lines
497 B
Svelte
16 lines
497 B
Svelte
<script lang="ts">
|
|
import DocLink from '$lib/components/DocLink.svelte';
|
|
export let service: any;
|
|
export let template: any;
|
|
export let linkToDocs: boolean = false;
|
|
import * as Icons from '$lib/components/svg/services';
|
|
const name: any = service.type && service.type[0].toUpperCase() + service.type.substring(1);
|
|
</script>
|
|
|
|
{#if linkToDocs}
|
|
<DocLink url={template[service.id].documentation} text={`Documentation`} isExternal={true} />
|
|
{:else}
|
|
<svelte:component this={Icons[name]} />
|
|
{/if}
|
|
|