import { t } from 'i18next'; import { Cog6ToothIcon } from '@heroicons/react/24/outline'; import { chakra, HStack, IconButton, Tooltip } from '@chakra-ui/react'; import { NodeType, useCoreSettings } from 'stores'; import { FC } from 'react'; const iconProps = { baseStyle: { w: 4, h: 4, }, }; const CoreSettingsIcon = chakra(Cog6ToothIcon, iconProps); type ActionButtonsProps = { node: NodeType, }; export const ActionButtons: FC = ({ node }) => { return ( { e.preventDefault(); e.stopPropagation(); }} > { useCoreSettings.setState({ selectedNode: node }); }} > ); };