mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 07:38:43 +01:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
"use client";
|
|
import { SignUpForm as SharedSignUpForm } from "@bitbaum/accountkit/auth/react";
|
|
import type { SignInMethods } from "@bitbaum/accountkit/auth";
|
|
import { Link } from "@/i18n/navigation";
|
|
import { ROUTES } from "@/lib/routes";
|
|
import { authClient } from "@/lib/auth/client";
|
|
import { useSharedAuth } from "./shared";
|
|
export function SignUpForm(props: { methods: SignInMethods; next: string; signUpPath: string }) {
|
|
const shared = useSharedAuth();
|
|
return (
|
|
<SharedSignUpForm
|
|
{...props}
|
|
{...shared}
|
|
client={authClient}
|
|
signInLink={<Link href={ROUTES.signIn}>{shared.labels.signIn}</Link>}
|
|
/>
|
|
);
|
|
}
|