mirror of
https://github.com/ershisan99/coolify.git
synced 2026-02-04 05:02:09 +00:00
19 lines
460 B
Svelte
19 lines
460 B
Svelte
<script lang="ts">
|
|
import type { LayoutData } from './$types';
|
|
|
|
export let data: LayoutData;
|
|
let destination = data.destination.destination;
|
|
let settings = data.destination.settings;
|
|
|
|
import { page } from '$app/stores';
|
|
import New from './components/New.svelte';
|
|
import Destination from './components/Destination.svelte';
|
|
const { id } = $page.params;
|
|
</script>
|
|
|
|
{#if id === 'new'}
|
|
<New />
|
|
{:else}
|
|
<Destination bind:destination bind:settings />
|
|
{/if}
|