@@ -3,9 +3,7 @@ import { signIn } from 'next-auth/react'
import Image from 'next/image'
import React, { useState } from 'react'
-interface YandexAuthButtonProps {}
-
-export const YandexAuthButton = ({}: YandexAuthButtonProps) => {
+export const YandexAuthButton = ({ children = 'Войти с Яндекс ID' }: { children?: React.ReactNode }) => {
const [hovered, setHovered] = useState(false)
return (
@@ -41,7 +39,7 @@ export const YandexAuthButton = ({}: YandexAuthButtonProps) => {
}}
>
- Войти с Яндекс ID
+ {children}
)
}
@@ -120,7 +120,7 @@ const Register: NextPageWithLayout = () => {
{referral === '' && isReferral && (
<>
-
+ Зарегистрироваться с Яндекс ID
или email