/* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable no-nested-ternary */ import clsx from 'clsx' import { Anchor } from 'components/Anchor' import { useWallet } from 'contexts/wallet' import { useRouter } from 'next/router' // import BrandText from 'public/brand/brand-text.svg' import { footerLinks, socialsLinks } from 'utils/links' import { BASE_FACTORY_ADDRESS, NETWORK } from '../utils/constants' import { IncomeDashboardDisclaimer } from './IncomeDashboardDisclaimer' import { SidebarLayout } from './SidebarLayout' import { WalletLoader } from './WalletLoader' const routes = [ { text: 'Collections', href: `/collections/`, isChild: false }, { text: 'Create a Collection', href: `/collections/create/`, isChild: true }, { text: 'My Collections', href: `/collections/myCollections/`, isChild: true }, { text: 'Collection Actions', href: `/collections/actions/`, isChild: true }, { text: 'Creator Income Dashboard', href: `/collections/actions/`, isChild: true }, { text: 'Contract Dashboards', href: `/contracts/`, isChild: false }, { text: 'Base Minter Contract', href: `/contracts/baseMinter/`, isChild: true }, { text: 'Vending Minter Contract', href: `/contracts/vendingMinter/`, isChild: true }, { text: 'SG721 Contract', href: `/contracts/sg721/`, isChild: true }, { text: 'Whitelist Contract', href: `/contracts/whitelist/`, isChild: true }, ] export const Sidebar = () => { const router = useRouter() const wallet = useWallet() let tempRoutes = routes if (BASE_FACTORY_ADDRESS === undefined) { tempRoutes = routes.filter((route) => route.href !== '/contracts/baseMinter/') } return ( {/* Stargaze brand as home button */} [e.preventDefault(), router.push('/brand')]}> Brand Text {/* wallet button */} {/* main navigation routes */} {tempRoutes.map(({ text, href, isChild }) => text !== 'Creator Income Dashboard' ? ( {text === 'Creator Income Dashboard' &&
{text}
} {text}
) : NETWORK === 'mainnet' ? ( ) : null, )}
{/* Stargaze network status */}
Network: {wallet.network}
{/* footer reference links */}
    {footerLinks.map(({ href, text }) => (
  • {text}
  • ))}
{/* footer attribution */}
Stargaze Studio {process.env.APP_VERSION}
Made by{' '} deus labs
{/* footer social links */}
{socialsLinks.map(({ Icon, href, text }) => ( ))}
) }