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'
import { checkFileSystemCompatibility } from '../../util/checkFileSystemCompatibility'
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 nodeExpand NodeOpen in EmacsFollow 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."
/>
{!checkFileSystemCompatibility() && (
You are not using a browser compatible with the FileSystem Access API. Only Chromium
based browsers are currently supported.
)}
)
}