import { Button } from 'web/components/button' import { Contract, followContract, unFollowContract, } from 'web/lib/firebase/contracts' import toast from 'react-hot-toast' import { CheckIcon, HeartIcon } from '@heroicons/react/outline' import clsx from 'clsx' import { User } from 'common/user' import { useContractFollows } from 'web/hooks/use-follows' import { firebaseLogin, updateUser } from 'web/lib/firebase/users' import { track } from 'web/lib/service/analytics' import { FollowMarketModal } from 'web/components/contract/follow-market-modal' import { useState } from 'react' export const FollowMarketButton = (props: { contract: Contract user: User | undefined | null }) => { const { contract, user } = props const followers = useContractFollows(contract.id) const [open, setOpen] = useState(false) return ( ) }