import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/solid'
import clsx from 'clsx'
import { useState } from 'react'
import { useUser } from 'web/hooks/use-user'
import { updateUser } from 'web/lib/firebase/users'
import { Col } from '../layout/col'
import { Modal } from '../layout/modal'
import { Row } from '../layout/row'
import { Title } from '../title'
export default function Welcome() {
const user = useUser()
const [open, setOpen] = useState(true)
const [page, setPage] = useState(0)
const TOTAL_PAGES = 4
function increasePage() {
if (page < TOTAL_PAGES - 1) {
setPage(page + 1)
}
}
function decreasePage() {
if (page > 0) {
setPage(page - 1)
}
}
async function setUserHasSeenWelcome() {
if (user) {
await updateUser(user.id, { ['shouldShowWelcome']: false })
}
}
if (!user || !user.shouldShowWelcome) {
return <>>
} else
return (
Manifold Markets is a place where anyone can ask a question about the future.
Your question becomes a prediction market that people can bet{' '} mana (M$) on.
Mana (M$) is the play money you bet with. You can also turn it into a real donation to charity, at a 100:1 ratio.
When you donate M$1000 to Givewell, Manifold sends them{' '} $10 USD.
> ) } function Page3() { return ( <>As a thank you for signing up, we’ve sent you{' '} M$1000 Mana{' '}
> ) }