2026-08-18 21:18:10 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import {page} from "$app/stores"
|
2026-09-26 06:27:46 +00:00
|
|
|
import ArticleForm from "@app/components/ArticleForm.svelte"
|
2026-08-18 21:18:10 +00:00
|
|
|
import {decodeRelay} from "@app/relays"
|
2026-09-16 17:14:43 +00:00
|
|
|
import type {PageProps} from "./$types"
|
2026-08-18 21:18:10 +00:00
|
|
|
|
2026-09-16 17:14:43 +00:00
|
|
|
const {params}: PageProps = $props()
|
|
|
|
|
|
|
|
|
|
const url = decodeRelay(params.relay)
|
2026-08-18 21:18:10 +00:00
|
|
|
const h = $page.url.searchParams.get("h") ?? undefined
|
|
|
|
|
const shareToChat = $page.url.searchParams.has("shareToChat")
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-09-26 06:27:46 +00:00
|
|
|
<ArticleForm {url} {h} {shareToChat}>
|
|
|
|
|
{#snippet header()}
|
2026-08-18 21:18:10 +00:00
|
|
|
<strong>Write an Article</strong>
|
|
|
|
|
{/snippet}
|
2026-09-26 06:27:46 +00:00
|
|
|
</ArticleForm>
|