- export async function load(ctx) {
- let id = ctx.page.params.id
- return { props: { id }}
- }
+ import { _ } from 'svelte-i18n';
+ import Forum from '$/components/forum/forum.svelte';
+ import ErrorBlock from '$/components/error_block/error_block.svelte';
+ import Loader from '$/components/loader/loader.svelte';
+
+ export let id;
+
+ import { getForum } from '$/stores/forum';
+ $: store = getForum(id);
+ $: forum = $store.data;