@@ -34,7 +34,13 @@ import {
3434 initWasm ,
3535} from "@/utils/wasm" ;
3636import isEqual from "lodash/isEqual" ;
37- import { MoonIcon , ShareIcon , SunIcon , SunMoonIcon } from "lucide-react" ;
37+ import {
38+ ExternalLinkIcon ,
39+ MoonIcon ,
40+ ShareIcon ,
41+ SunIcon ,
42+ SunMoonIcon ,
43+ } from "lucide-react" ;
3844import { type FC , useEffect , useMemo , useRef , useState } from "react" ;
3945import { useDebouncedValue } from "./hooks/debounce" ;
4046
@@ -45,9 +51,7 @@ export const App = () => {
4551 }
4652 return "loading" ;
4753 } ) ;
48- const [ code , setCode ] = useState (
49- window . CODE ?? defaultCode ,
50- ) ;
54+ const [ code , setCode ] = useState ( window . CODE ?? defaultCode ) ;
5155 const [ debouncedCode , isDebouncing ] = useDebouncedValue ( code , 1000 ) ;
5256 const [ parameterValues , setParameterValues ] = useState <
5357 Record < string , string >
@@ -313,11 +317,12 @@ const ExampleSelector: FC = () => {
313317
314318 < DropdownMenuPortal >
315319 < DropdownMenuContent >
316- { Object . entries ( examples ) . map ( ( [ slug , title ] ) => {
320+ { Object . entries ( examples ) . map ( ( [ slug , title ] ) => {
317321 const href = `${ window . location . origin } /parameters/example/${ slug } ` ;
318322 return (
319323 < DropdownMenuItem key = { slug } asChild = { true } >
320324 < a href = { href } target = "_blank" rel = "noreferrer" >
325+ < ExternalLinkIcon />
321326 { title }
322327 </ a >
323328 </ DropdownMenuItem >
0 commit comments