import { ReactNode, useState } from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
import { IconButton } from '../shared/Button'
import {
ChartBarIcon,
Bars3Icon,
XMarkIcon,
ChevronRightIcon,
LightBulbIcon,
ArrowsRightLeftIcon,
CurrencyDollarIcon,
Cog8ToothIcon,
BuildingLibraryIcon,
ArrowTrendingUpIcon,
MagnifyingGlassIcon,
BanknotesIcon,
} from '@heroicons/react/20/solid'
import SolanaTps from '@components/SolanaTps'
const StyledBarItemLabel = ({
children,
...props
}: {
children: ReactNode
}) => (
{children}
)
const BottomBarLink = ({
children,
isActive,
pathName,
}: {
children: ReactNode
isActive: boolean
pathName: string
}) => {
return (
{children}
)
}
const BottomBar = () => {
const { t } = useTranslation('common')
const { asPath } = useRouter()
const [showPanel, setShowPanel] = useState(false)
return (
<>
{t('account')}
{t('swap')}
{t('trade')}
{t('borrow')}
>
)
}
export default BottomBar
const MoreMenuPanel = ({
showPanel,
setShowPanel,
}: {
showPanel: boolean
setShowPanel: (showPanel: boolean) => void
}) => {
const { t } = useTranslation(['common', 'search'])
return (
setShowPanel(false)} hideBg>
setShowPanel(false)}
>
}
/>
}
/>
}
/>
}
isExternal
/>
}
isExternal
/>
)
}
const MoreMenuItem = ({
title,
path,
icon,
isExternal,
}: {
title: string
path: string
icon: ReactNode
isExternal?: boolean
}) => {
const classNames =
'default-transition flex w-full items-center justify-between border-t border-th-bkg-4 px-2 py-4 text-th-fgd-2 hover:text-th-fgd-1'
return isExternal ? (
{icon}
{title}
) : (
{icon}
{title}
)
}