import type * as getEmails from '#lib/lexicons/dev/knotless/getEmails.ts'; import type { PageLoad } from './$types'; import { xrpc } from '#lib/data.ts'; /** How many addresses the account claims: none for no one. */ export const load: PageLoad = async (event) => { const { me } = await event.parent(); if (!me) return { emails: null }; return { emails: await xrpc(event, 'dev.knotless.getEmails', {}) }; };