4 import { _ } from 'svelte-i18n';
6 import { getPost } from '$/stores/post';
7 import PostContent from '$/components/post_content/post_content.svelte';
8 import ErrorBlock from '$/components/error_block/error_block.svelte';
9 import Loader from '$/components/loader/loader.svelte';
11 $: store = getPost(id);
12 $: post = $store.data;
19 <ErrorBlock message={$_('post.error.unavailable')} />
22 <PostContent post={post} />