From 5caeefc83ef61b064c388416061d4c9192e954ed Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 8 Aug 2024 00:24:07 +0530 Subject: [PATCH] feat: startGetList & stopGetList --- src/context/browserActions.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index e91c1b12..b05d8220 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -6,6 +6,8 @@ interface ActionContextProps { getScreenshot: boolean; startGetText: () => void; stopGetText: () => void; + startGetList: () => void; + stopGetList: () => void; startGetScreenshot: () => void; stopGetScreenshot: () => void; } @@ -20,11 +22,14 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const startGetText = () => setGetText(true); const stopGetText = () => setGetText(false); + const startGetList = () => setGetList(true); + const stopGetList = () => setGetList(false); + const startGetScreenshot = () => setGetScreenshot(true); const stopGetScreenshot = () => setGetScreenshot(false); return ( - + {children} );