import React, { useState } from 'react' import TokenProjectSignup from '../Modal/TokenProjectSignup' import useGlobalConfig from '../Contexts/useGlobalConfig' import InternalLinkButton from './InternalLinkButton' import ExternalLinkButton from './ExternalLinkButton' import { tokenUrl } from '../../utils/linkGenerator' const NavigationConnectButton = () => { const [isActivationModelOpen, setOpenActivationModal] = useState(false) const { subscriptionStatus } = useGlobalConfig() // We want to show the user they have connected their account if (subscriptionStatus === 'paid') { return ( ) } return ( <> {isActivationModelOpen ? ( { setOpenActivationModal(false) }} /> ) : null} { setOpenActivationModal(true) }} /> ) } export default NavigationConnectButton