1- /* eslint-disable @typescript-eslint/no-explicit-any */
1+
22import { useState , useCallback , useEffect , useRef } from "react" ;
33import OpenAIInput from "../components/OpenAIInput" ;
44import MarkmapOutput from "../components/MarkmapOutput" ;
55import Nav from "components/Nav" ;
66import { logEvent , logException } from "utils/ana" ; // adjust the path as needed
77import Head from "next/head" ;
8-
8+ import Script from "next/script" ;
99const MindMapper = ( ) => {
1010 const [ openAIResponse , setOpenAIResponse ] = useState < any | null > ( null ) ;
1111 const [ hasResponse , setHasResponse ] = useState ( false ) ;
@@ -16,7 +16,7 @@ const MindMapper = () => {
1616 // eslint-disable-next-line @typescript-eslint/no-unused-vars
1717 const [ svgContent , setSvgContent ] = useState < string | null > ( null ) ;
1818 const markmapRef = useRef < HTMLDivElement > ( null ) ;
19- // eslint-disable-next-line @typescript-eslint/no-unused-vars
19+
2020 const [ lastInput , setLastInput ] = useState ( "" ) ;
2121
2222 const sanitizeFilename = ( filename : string ) => {
@@ -58,7 +58,7 @@ const MindMapper = () => {
5858 <meta charset="UTF-8" />
5959 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6060 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
61- <title>Mindmap </title>
61+ <title>🎆DynamicApproach-MindMap </title>
6262 <style>
6363 html, body, div.markmap svg.markmap {
6464 position: absolute;
@@ -129,18 +129,6 @@ const MindMapper = () => {
129129 >
130130 < Head >
131131 < title > 🎆DynamicApproach-MindMap</ title >
132- < script
133- type = "text/javascript"
134- dangerouslySetInnerHTML = { {
135- __html : `
136- (function(c,l,a,r,i,t,y){
137- c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
138- t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
139- y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
140- })(window, document, "clarity", "script", "ouiiyeyuum");
141- `
142- } }
143- />
144132 </ Head >
145133 < Nav />
146134 < div className = "flex flex-col-reverse md:flex-row min-h-screen" >
@@ -218,6 +206,18 @@ const MindMapper = () => {
218206 </ div >
219207 ) }
220208 </ div >
209+ < Script
210+ type = "text/javascript"
211+ dangerouslySetInnerHTML = { {
212+ __html : `
213+ (function(c,l,a,r,i,t,y){
214+ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
215+ t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
216+ y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
217+ })(window, document, "clarity", "script", "ouiiyeyuum");
218+ `
219+ } }
220+ />
221221 </ div >
222222 ) ;
223223} ;
0 commit comments