2022-05-25 16:25:39 +00:00
|
|
|
import React from 'react'
|
|
|
|
import { useUser } from 'web/hooks/use-user'
|
|
|
|
import { firebaseLogin } from 'web/lib/firebase/users'
|
2022-06-15 21:34:34 +00:00
|
|
|
import { withTracking } from 'web/lib/service/analytics'
|
2022-05-25 16:25:39 +00:00
|
|
|
|
|
|
|
export function SignUpPrompt() {
|
|
|
|
const user = useUser()
|
|
|
|
|
|
|
|
return user === null ? (
|
|
|
|
<button
|
2022-06-15 21:58:52 +00:00
|
|
|
className="btn flex-1 whitespace-nowrap border-none bg-gradient-to-r from-indigo-500 to-blue-500 px-10 text-lg font-medium normal-case hover:from-indigo-600 hover:to-blue-600"
|
2022-06-15 21:34:34 +00:00
|
|
|
onClick={withTracking(firebaseLogin, 'sign up to bet')}
|
2022-05-25 16:25:39 +00:00
|
|
|
>
|
|
|
|
Sign up to bet!
|
|
|
|
</button>
|
|
|
|
) : null
|
|
|
|
}
|