From 1ce7e8841741384146e7aa29cbc98e8ac9933b69 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 24 Jul 2024 21:37:26 +0530 Subject: [PATCH] feat: start/stop bw actions --- src/components/organisms/RightSidePanel.tsx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index 76cdb238..124f76cb 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -21,7 +21,7 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { const [isSettingsDisplayed, setIsSettingsDisplayed] = React.useState(false); const { lastAction } = useGlobalInfoStore(); - const { handleGetText, handleGetScreenshot } = useActionContext(); + const { getText, getScreenshot, startGetText, stopGetText, startGetScreenshot, stopGetScreenshot } = useActionContext(); const handleChange = (event: React.SyntheticEvent, newValue: string) => { setContent(newValue); @@ -39,6 +39,7 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { } }, [pairForEdit]) + return ( { : null } - - + + + + ); };