diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index 449abdff..57f59f3a 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -5,6 +5,7 @@ interface ActionContextProps { getList: boolean; getScreenshot: boolean; paginationMode: boolean; + startPaginationMode: () => void; startGetText: () => void; stopGetText: () => void; startGetList: () => void; @@ -21,6 +22,8 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const [getScreenshot, setGetScreenshot] = useState(false); const [paginationMode, setPaginationMode] = useState(false); + const startPaginationMode = () => setPaginationMode(true); + const startGetText = () => setGetText(true); const stopGetText = () => setGetText(false); @@ -31,7 +34,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const stopGetScreenshot = () => setGetScreenshot(false); return ( - + {children} );