import { ChevronDownIcon } from '@chakra-ui/icons'
import {
Button,
Flex,
Menu,
MenuButton,
MenuItem,
MenuList,
Portal,
StackDivider,
VStack,
Text,
Box,
} from '@chakra-ui/react'
import React from 'react'
import { initialBehavior, initialMouse } from '../config'
import { InfoTooltip } from './InfoTooltip'
import { SliderWithInfo } from './SliderWithInfo'
export interface BehaviorPanelProps {
behavior: typeof initialBehavior
setBehavior: any
mouse: typeof initialMouse
setMouse: any
}
export const BehaviorPanel = (props: BehaviorPanelProps) => {
const { behavior, setBehavior, mouse, setMouse } = props
return (
}
align="stretch"
paddingLeft={7}
color="gray.800"
>
Preview node
Expand Node
Open in Emacs
Follow Emacs by...
Local graph
setBehavior({ ...behavior, zoomSpeed: value })}
/>
setBehavior({ ...behavior, zoomPadding: value })}
infoText="How much to zoom out to accomodate all nodes when changing the view."
/>
)
}