From b0ddf286f087b31dc75626f709cfce3889de25dd Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Mon, 4 Oct 2021 15:34:56 +0200
Subject: feat(preview): changed text-retrieval to http

---
 components/Tweaks/BehaviorPanel.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'components/Tweaks/BehaviorPanel.tsx')

diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 8edb986..0c22e1a 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -33,6 +33,26 @@ export const BehaviorPanel = (props: BehaviorPanelProps) => {
       paddingLeft={7}
       color="gray.800"
     >
+      <Flex alignItems="center" justifyContent="space-between">
+        <Text>Preview node</Text>
+        <Menu isLazy placement="right">
+          <MenuButton as={Button} rightIcon={<ChevronDownIcon />} colorScheme="" color="black">
+            <Text>
+              {mouse.preview ? mouse.preview[0]!.toUpperCase() + mouse.preview!.slice(1) : 'Never'}
+            </Text>
+          </MenuButton>
+          <Portal>
+            {' '}
+            <MenuList bgColor="gray.200" zIndex="popover">
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: '' })}>Never</MenuItem>
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: 'click' })}>Click</MenuItem>
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: 'double' })}>
+                Double Click
+              </MenuItem>
+            </MenuList>
+          </Portal>
+        </Menu>
+      </Flex>
       <Flex alignItems="center" justifyContent="space-between">
         <Flex>
           <Text>Expand Node</Text>
-- 
cgit v1.2.3

