import { error, type Load, type ServerLoad } from "@sveltejs/kit" import type { PageLoad } from "./$types" import type { FetchError } from "$lib/util" import { parseSuggestion, type Suggestion } from "$lib/types" export const load: PageLoad = async ({ params }) => { if (params.id) { return { roomId: params.id, } } error(400, "Please provide a room id") }