import {
Box, CloseButton, Flex, Icon, useColorModeValue,
} from '@chakra-ui/react'
import { FiArrowRight, FiHome, FiTrendingUp } from 'react-icons/fi'
import { useApp } from '../AppContext'
import { Logo } from './Logo'
import { ColorModeSwitcher } from './ColorModeSwitcher'
import { Link } from 'react-router-dom';
const menuItems = [
{ name: 'Home', icon: FiHome, path: '/home' },
{ name: 'Farm', icon: FiTrendingUp, path: '/farm' },
]
const docItems = [
{ name: 'Anouncement', icon: '', path: '' },
{ name: 'FAQ', icon: '', path: '' },
{ name: 'Tutorial', icon: '', path: '' },
]
const NavItem = ({ icon, path, onClick, children, ...rest }) => {
return (
{icon && (
)}
{children}
)
}
const DocItem = ({ path, children, ...rest }) => {
return (
{children}
)
}
const SocialItem = ({ icon, path, ...rest }) => {
return (
)
}
export const SideBar = ({ onClose, ...rest }) => {
const app = useApp()
const bg = useColorModeValue('white', 'gray.900')
// const colorBorderRight = useColorModeValue('gray.200', 'gray.700')
return (
{/* nav links */}
{
menuItems.map((item) => (
{item.name}
))
}
{/* document links */}
{
docItems.map((item) => (
{item.name}
))
}
{/* social icons */}
{
app.socials.map((item) => (
))
}
)
}