From 02259df5d39b9ccf5ead9424028def5742b73fca Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:56 +0530 Subject: [PATCH] feat: add sign in button with progress states --- app/components/auth/form/sign-in-button.tsx | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/components/auth/form/sign-in-button.tsx diff --git a/app/components/auth/form/sign-in-button.tsx b/app/components/auth/form/sign-in-button.tsx new file mode 100644 index 0000000..36922e5 --- /dev/null +++ b/app/components/auth/form/sign-in-button.tsx @@ -0,0 +1,22 @@ +import { ArrowRight, Loader2 } from 'lucide-react'; +import { Button } from '~/components/ui/button'; +import { BRAND } from '~/data/brand'; + +export type SignInState = 'idle' | 'busy' | 'done'; + +const LABELS: Record = { + idle: 'Sign in', + busy: 'Signing in…', + done: `Signed in. Opening ${BRAND.product}`, +}; + +export function SignInButton({ state }: { state: SignInState }) { + const working = state !== 'idle'; + return ( + + ); +}