import { env } from '#/env' import { html } from '../lib/view' import { shell } from './shell' type Props = { error?: string } export function login(props: Props) { return shell({ title: 'Log in', content: content(props), }) } function content({ error }: Props) { const signupService = !env.PDS_URL || env.PDS_URL === 'https://bsky.social' ? 'Bluesky' : new URL(env.PDS_URL).hostname return html`
${error ? html`

Error: ${error}

` : undefined}
` }