X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/bd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6..74b03c33ff37d7363721bc2c33abb867dc9ea87c:/src/components/post/post.svelte?ds=inline diff --git a/src/components/post/post.svelte b/src/components/post/post.svelte index 4720533..bf2a190 100644 --- a/src/components/post/post.svelte +++ b/src/components/post/post.svelte @@ -1,27 +1,23 @@ + import { getPost } from '$/stores/post'; + import PostContent from '$/components/post_content/post_content.svelte'; + import ErrorBlock from '$/components/error_block/error_block.svelte'; + import Loader from '$/components/loader/loader.svelte'; - -
-

It's just how it is...

-
-
+ $: store = getPost(id); + $: post = $store.data; + - +{#if $store.loading} + +{/if} +{#if $store.error} + +{/if} +{#if post} + +{/if}