import { Text, Accordion, AccordionButton, AccordionItem, Flex, VStack, AccordionIcon, AccordionPanel, MenuButton, Menu, Button, Box, Portal, MenuList, MenuItem, } from '@chakra-ui/react' import React, { useCallback } from 'react' import { HighlightingPanel } from './HighlightingPanel' import { ColorsPanel } from './ColorsPanel' import { initialColoring, initialVisuals } from '../config' import { NodesNLinksPanel } from './NodesNLinksPanel' import { LabelsPanel } from './LabelsPanel' import { CitationsPanel } from './CitationsPanel' import { ColorMenu } from './ColorMenu' import { ThemeSelect } from './ThemeSelect' import { GraphColorSelect } from './GraphColorSelect' export interface VisualsPanelProps { visuals: typeof initialVisuals setVisuals: any highlightColor: string setHighlightColor: any threeDim: boolean coloring: typeof initialColoring setColoring: any } export const VisualsPanel = (props: VisualsPanelProps) => { const { coloring, setColoring, visuals, setVisuals, highlightColor, setHighlightColor, threeDim, } = props const setVisualsCallback = useCallback((val) => setVisuals(val), []) return ( Colors Nodes & Links Labels Highlighting Citations ) }