import type * as getOwnProfile from '#lib/lexicons/dev/knotless/getOwnProfile.ts'; import type * as getProfile from '#lib/lexicons/dev/knotless/getProfile.ts'; import type { PageLoad } from './$types'; import { xrpc } from '#lib/data.ts'; /** What the account's knotless profile holds, and how it shows with its Bluesky one under it: none for no one. */ export const load: PageLoad = async (event) => { const { me } = await event.parent(); if (!me) return { own: null, shown: null }; const [own, shown] = await Promise.all([ xrpc(event, 'dev.knotless.getOwnProfile', {}), xrpc(event, 'dev.knotless.getProfile', { actor: me.did }) ]); return { own, shown }; };