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 | b72cbb40276b811bebbe3a82c43c71d3cfe1a147 (patch) | |
tree | 812757fabd0b4f27d3e36e170d5841ebcc093514 /extension/react-app/src/components/ContinueButton.tsx | |
parent | 8cbfc4a3713f2ed79d6d99890dee84173fcfa166 (diff) | |
parent | 3f1123095d2ee652b1db239d325aa74f5acfb0cf (diff) | |
download | sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.tar.gz sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.tar.bz2 sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.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> ); |