--- import { localeHref } from '../i18n/paths'; // Client-side sign in / out (AT Protocol OAuth). Restores the session on load (so users // stay signed in), exposes window.atn = { agent, session, did } + window.atnClient for the // /login page and logged-in actions, and fires atn:signedin / atn:signedout. // // The sign-in link is server-rendered and we optimistically paint the signed-in label from // a cached value, so the button never pops in after the async OAuth init (no navbar blink // on page-to-page navigation). import { useTranslations, type Lang } from '../i18n/ui'; const { lang = 'en' } = Astro.props as { lang?: Lang }; const t = useTranslations(lang); const loginHref = localeHref(lang, '/login'); const signIn = t('auth.signin'); const signOut = t('auth.signout'); ---