// _app.tsx import { define, type PageProps } from "../utils.ts"; import WelcomeBar from "../islands/WelcomeBar/WelcomeBar.tsx"; import { createPublicId } from "../helpers.ts"; import { SessionCookie } from "./auth/callback.ts"; export default define.page(async function App(props: PageProps) { const { Component, state, url, } = props; const stateData: SessionCookie = state.data ?? { started_on: 0, user_name: "", user_id: "", role: "", user_encrypted: false, }; const publicId = stateData.user_id ? await createPublicId(stateData.user_id) : ""; return (