import './page.css';
import { redirect } from '@wular/pnext/navigation';
import { ErrorText } from '@/comps/ui/field';
import { AuthPanel } from '@/comps/frame/auth-panel';
import { safeReturnPath } from '@coder/server/auth/sign-in';
import { load } from '@/api/load';
const WULAR_LOGO = (
);
const ERRORS: Record = {
expired: 'That sign-in took too long. Sign in again.',
unavailable: 'Wular Auth could not be reached. Try again in a moment.',
access_denied: 'Sign-in was cancelled.',
};
function LoginPage({ signIn, error }: { signIn: string; error?: string | null }) {
return (