import clsx from 'clsx' import { useUser } from 'web/hooks/use-user' export function FollowButton(props: { isFollowing: boolean | undefined onFollow: () => void onUnfollow: () => void className?: string }) { const { isFollowing, onFollow, onUnfollow, className } = props const user = useUser() if (!user || isFollowing === undefined) return ( ) if (isFollowing) { return ( ) } return ( ) }