From e7b2a53fc9a72d967d3ed43234de1fae5eb26cf0 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 5 Sep 2024 20:52:20 +0530 Subject: [PATCH] feat: pagination mode --- src/context/browserActions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index 5a7c12b5..449abdff 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -4,6 +4,7 @@ interface ActionContextProps { getText: boolean; getList: boolean; getScreenshot: boolean; + paginationMode: boolean; startGetText: () => void; stopGetText: () => void; startGetList: () => void; @@ -18,6 +19,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const [getText, setGetText] = useState(false); const [getList, setGetList] = useState(false); const [getScreenshot, setGetScreenshot] = useState(false); + const [paginationMode, setPaginationMode] = useState(false); const startGetText = () => setGetText(true); const stopGetText = () => setGetText(false); @@ -29,7 +31,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const stopGetScreenshot = () => setGetScreenshot(false); return ( - + {children} );