import { showToast } from '../components/toast.js'; let authConfig = null; async function loadAuthConfig() { if (authConfig) return authConfig; const res = await fetch('/api/auth/config'); authConfig = await res.json(); return authConfig; } export async function render(container) { const config = await loadAuthConfig(); const isSetup = config.needsSetup; container.innerHTML = `
${isSetup ? 'Create your admin account to get started' : 'Sign in to manage your displays'}
${isSetup ? '' : 'New accounts get a 14-day free Pro trial
'}