add documentationLink to pageHeader

This commit is contained in:
Ruben Fiszel
2023-04-27 17:27:12 +02:00
parent 38addd348c
commit 1d6d60bace
@@ -3,6 +3,7 @@
export let title: string
export let tooltip: string = ''
export let documentationLink: string | undefined = undefined
export let primary: boolean = true
</script>
@@ -10,8 +11,8 @@
{#if primary}
<span class="flex items-center space-x-2 mb-2">
<h1>{title}</h1>
{#if tooltip}
<Tooltip scale={0.9}>{tooltip}</Tooltip>
{#if tooltip || documentationLink}
<Tooltip {documentationLink} scale={0.9}>{tooltip}</Tooltip>
{/if}
</span>
{:else}