From 8716c8fc16610d9fe9896897711f1f749ed0455a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 24 Jul 2024 19:29:52 +0530 Subject: [PATCH] feat: action context type --- src/context/browserActions.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/context/browserActions.tsx diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx new file mode 100644 index 00000000..46d2d936 --- /dev/null +++ b/src/context/browserActions.tsx @@ -0,0 +1,10 @@ +import React, { createContext, useState, useContext, ReactNode } from 'react'; + +interface ActionContextType { + getText: boolean; + getScreenshot: boolean; + handleGetText: () => void; + handleGetScreenshot: () => void; + resetActions: () => void; +} +