'use client'; import { renderThumb, renderTrack, renderView } from '@/components/scrollbar/Scrollbar'; import Content from '@/components/sidebar/components/Content'; import { ApiKeyContext } from '@/contexts/layout'; import { IRoute } from '@/types/types'; import { isWindowAvailable } from '@/utils/navigation'; import { Box, Flex, Drawer, DrawerBody, Icon, useColorModeValue, DrawerOverlay, useDisclosure, DrawerContent, DrawerCloseButton } from '@chakra-ui/react'; import React, { PropsWithChildren, useContext } from 'react'; import { Scrollbars } from 'react-custom-scrollbars-2'; import { IoMenuOutline } from 'react-icons/io5'; export interface SidebarProps extends PropsWithChildren { routes: IRoute[]; [x: string]: any; } function Sidebar(props: SidebarProps) { const { routes } = props; const { apiKey, setApiKey } = useContext(ApiKeyContext); let variantChange = '0.2s linear'; let shadow = useColorModeValue( '14px 17px 40px 4px rgba(112, 144, 176, 0.08)', 'unset' ); let sidebarBg = useColorModeValue('white', 'navy.800'); let sidebarRadius = '14px'; let sidebarMargins = '0px'; return ( ); } // -------------- Sidebar Function for Navbar burger -------------- export function SidebarResponsive(props: SidebarProps) { let sidebarBackgroundColor = useColorModeValue('white', 'navy.800'); let menuColor = useColorModeValue('gray.400', 'white'); const { apiKey, setApiKey } = useContext(ApiKeyContext); // SIDEBAR const { isOpen, onOpen, onClose } = useDisclosure(); const { routes } = props; return ( ); } export default Sidebar;