import type { LayoutLoad } from './$types'; /** Whose settings these are: whoever is logged in, or no one, with whether they can log in here, whether this server writes for them, and whether they are an organization. */ export const load: LayoutLoad = async (event) => { const { viewer } = await event.parent(); return { me: viewer?.actor ?? null, login: viewer?.login ?? false, delegated: viewer?.delegated ?? false, organization: viewer?.organization ?? false }; };