import { ArrowRightIcon, CompassIcon } from "lucide-react"; import { Link } from "react-router-dom"; import { useInstance } from "@/contexts/InstanceContext"; import { ROUTES } from "@/router/routes"; import { InstanceAccessMode } from "@/types/proto/api/v1/instance_service_pb"; import { useTranslate } from "@/utils/i18n"; import AuthFooter from "./AuthFooter"; interface Props { chip?: React.ReactNode; title: string; subtitle?: string; // Hide the explore band on pages that shouldn't offer an exit (e.g. first-run setup). hideExplore?: boolean; children: React.ReactNode; } export const AuthChip = ({ children }: { children: React.ReactNode }) => ( {children} ); // Centered icon + title + description block for states where a form cannot be shown. export const AuthEmptyState = ({ icon, title, description, children, }: { icon: React.ReactNode; title: string; description: string; children?: React.ReactNode; }) => (
{icon}

{title}

{description}

{children}
); // "Already have an account? Sign in" style prompt for hopping between auth pages. export const AuthLinkPrompt = ({ prompt, to, label }: { prompt: string; to: string; label: string }) => (

{prompt}{" "} {label}

); export const AuthOptionsLoading = () =>