From 1cea5a7ac65d415c89d8cebd774639e3046a38e8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 8 Aug 2024 00:17:47 +0530 Subject: [PATCH] feat: getList action --- 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 50d86777..e91c1b12 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -2,6 +2,7 @@ import React, { createContext, useContext, useState, ReactNode } from 'react'; interface ActionContextProps { getText: boolean; + getList: boolean; getScreenshot: boolean; startGetText: () => void; stopGetText: () => void; @@ -13,6 +14,7 @@ const ActionContext = createContext(undefined); export const ActionProvider = ({ children }: { children: ReactNode }) => { const [getText, setGetText] = useState(false); + const [getList, setGetList] = useState(false); const [getScreenshot, setGetScreenshot] = useState(false); const startGetText = () => setGetText(true); @@ -22,7 +24,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const stopGetScreenshot = () => setGetScreenshot(false); return ( - + {children} );