1 <script lang="ts" context="module">
6 }) => ({ props: { id } });
10 import { _ } from 'svelte-i18n';
11 import { getPost } from '$lib/stores/posts';
12 import Post from '$lib/components/post/post.svelte';
13 import ErrorBlock from '$lib/components/error_block/error_block.svelte';
14 import Loader from '$lib/components/loader/loader.svelte';
16 export let id: string;
18 $: store = getPost(id);
19 $: post = $store.data;
23 <title>{$_('post.post')}}</title>
30 <ErrorBlock message={$_('post.error.unavailable')} />