diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
commit | 54048d3e7bda9c39cc08888b37e0c7dc0716a713 (patch) | |
tree | 3ff7254f755e4b3b28a523d652b78dd1f61f868d /extension/react-app/src/components/ContinueButton.tsx | |
parent | 82ead52472d4e2a2e291aa5f17ea8522fc11f236 (diff) | |
parent | ad462728afc4e6a9e1402aff295010ced9cf2f7a (diff) | |
download | sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.tar.gz sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.tar.bz2 sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.zip |
Merge branch 'main' into function-calling
Diffstat (limited to 'extension/react-app/src/components/ContinueButton.tsx')
-rw-r--r-- | extension/react-app/src/components/ContinueButton.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/extension/react-app/src/components/ContinueButton.tsx b/extension/react-app/src/components/ContinueButton.tsx index c6117bf9..ef6719b7 100644 --- a/extension/react-app/src/components/ContinueButton.tsx +++ b/extension/react-app/src/components/ContinueButton.tsx @@ -1,6 +1,8 @@ import styled, { keyframes } from "styled-components"; import { Button } from "."; import { Play } from "@styled-icons/heroicons-outline"; +import { useSelector } from "react-redux"; +import { RootStore } from "../redux/store"; let StyledButton = styled(Button)` margin: auto; @@ -25,14 +27,21 @@ let StyledButton = styled(Button)` `; function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) { + const vscMediaUrl = useSelector( + (state: RootStore) => state.config.vscMediaUrl + ); + return ( <StyledButton hidden={props.hidden} className="m-auto" onClick={props.onClick} > - <Play /> - {/* <img src={"/continue_arrow.png"} width="16px"></img> */} + {vscMediaUrl ? ( + <img src={`${vscMediaUrl}/play_button.png`} width="22px" /> + ) : ( + <Play /> + )} Continue </StyledButton> ); |