import { useState } from 'react'
import { Dropdown, Image, Nav, Navbar, Offcanvas } from 'react-bootstrap'
import { MEDIA_URL } from '@/lib/constants'
import Link from 'next/link'
import { Indicator, LoginButtons, LogoutDropdownItem, NavWalletSummary } from '../common'
import AnonIcon from '@/svgs/spy-fill.svg'
import styles from './footer.module.css'
import canvasStyles from './offcanvas.module.css'
import classNames from 'classnames'
import { useWalletIndicator } from '@/wallets/client/hooks'
export default function OffCanvas ({ me, dropNavKey }) {
const [show, setShow] = useState(false)
const handleClose = () => setShow(false)
const handleShow = () => setShow(true)
const MeImage = ({ onClick }) => me
? (
)
:
const profileIndicator = me && !me.bioId
const walletIndicator = useWalletIndicator()
return (
<>
{me
? (
<>
profile
{profileIndicator && }
bookmarks
wallets
{walletIndicator && }
credits
satistics
referrals
settings
>
)
:
}
>
)
}