26 lines
856 B
Svelte
26 lines
856 B
Svelte
<script lang="ts">
|
|
import PresentationDisplay from '#lib/components/PresentationDisplay.svelte';
|
|
import type { PageProps } from './$types';
|
|
|
|
let { data }: PageProps = $props();
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>Präsentation testen | Sendewerk</title>
|
|
<meta name="robots" content="noindex, nofollow, noarchive" />
|
|
</svelte:head>
|
|
|
|
<main class="heinzlive-output presentation-test-output">
|
|
<div class="presentation-test-status" role="status">Isolierte Testansicht</div>
|
|
<PresentationDisplay
|
|
content={data.content}
|
|
imageSrc={data.content.mode === 'text' && data.content.images.length
|
|
? '/media'
|
|
: data.content.mode === 'image' && data.content.images.length
|
|
? `/media/${data.content.images[0].id}`
|
|
: data.content.mode === 'link' && data.content.imageUrl
|
|
? `/fundus/${data.pieceId}/praesentation/preview-image`
|
|
: ''}
|
|
/>
|
|
</main>
|