import { cn } from "@bigmoves/bff/components"; import type { JSX } from "preact"; import { Button } from "./Button.tsx"; import { Input } from "./Input.tsx"; export type LoginProps = & JSX.HTMLAttributes & Readonly<{ inputPlaceholder?: string; submitText?: string; infoText?: string; error?: string; errorClass?: string; infoClass?: string; }>; export function Login( { inputPlaceholder = "Handle (e.g., user.bsky.social)", submitText = "Login with Bluesky", infoText = "", error, errorClass, infoClass, ...rest }: LoginProps, ): JSX.Element { return (
{infoText && (
{infoText}
)}
{error ? (
{error}
) : null}
); }