From 17806d932502adbf974ccd93a670e57b78be9a08 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Sat, 19 Aug 2023 01:00:24 -0700
Subject: fix: :bug: make sure server_version.txt exists

---
 extension/react-app/src/components/Layout.tsx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

(limited to 'extension/react-app/src/components/Layout.tsx')

diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx
index 54a4517f..86192afb 100644
--- a/extension/react-app/src/components/Layout.tsx
+++ b/extension/react-app/src/components/Layout.tsx
@@ -17,6 +17,7 @@ import {
   FolderIcon,
   BookOpenIcon,
   ChatBubbleOvalLeftEllipsisIcon,
+  SparklesIcon,
 } from "@heroicons/react/24/outline";
 import HeaderButtonWithText from "./HeaderButtonWithText";
 import { useNavigate } from "react-router-dom";
@@ -138,6 +139,30 @@ const Layout = () => {
           {bottomMessage}
         </BottomMessageDiv>
         <Footer>
+          <SparklesIcon
+            visibility={
+              localStorage.getItem("hideFeature") === "true"
+                ? "hidden"
+                : "visible"
+            }
+            className="mr-auto cursor-pointer"
+            onClick={() => {
+              localStorage.setItem("hideFeature", "true");
+            }}
+            onMouseEnter={() => {
+              dispatch(
+                setBottomMessage(
+                  "🎁 New Feature: Use ⌘D automatically debug errors in the terminal"
+                )
+              );
+            }}
+            onMouseLeave={() => {
+              dispatch(setBottomMessage(undefined));
+            }}
+            width="1.3em"
+            height="1.3em"
+            color="yellow"
+          />
           <HeaderButtonWithText
             onClick={() => {
               client?.loadSession(undefined);
-- 
cgit v1.2.3-70-g09d2

