35 lines
783 B
JavaScript
35 lines
783 B
JavaScript
import { useQuery } from '@apollo/client'
|
|
import gql from 'graphql-tag'
|
|
import { Container } from 'react-bootstrap'
|
|
import { CopyInput } from './form'
|
|
import styles from './footer.module.css'
|
|
|
|
export default function Footer () {
|
|
const query = gql`
|
|
{
|
|
connectAddress
|
|
}
|
|
`
|
|
|
|
const { data } = useQuery(query)
|
|
|
|
return (
|
|
<footer>
|
|
{data &&
|
|
<Container>
|
|
<div
|
|
className={`text-small my-3 mx-auto ${styles.connect}`}
|
|
>
|
|
<span className='nav-item text-muted mr-2'>connect:</span>
|
|
<CopyInput
|
|
size='sm'
|
|
groupClassName='mb-0 w-100'
|
|
readOnly
|
|
placeholder={data.connectAddress}
|
|
/>
|
|
</div>
|
|
</Container>}
|
|
</footer>
|
|
)
|
|
}
|