+
+ Web Scraper
+
+
+ setUrl(e.target.value)}
+ style={{ marginBottom: "10px" }}
+ />
+
+
+
+ setNewRow({ ...newRow, name: e.target.value })}
+ />
+ setNewRow({ ...newRow, xpath: e.target.value })}
+ />
+ }
+ onClick={handleAddRow}
+ >
+ Add Row
+
+
+
+
+
+ Name
+ XPath
+
+
+
+ {rows.map((row, index) => (
+
+
+
+
+
+
+
+
+ ))}
+
+
+
>
);
};
diff --git a/src/useAuth.ts b/src/useAuth.ts
new file mode 100644
index 0000000..7053bda
--- /dev/null
+++ b/src/useAuth.ts
@@ -0,0 +1,13 @@
+import { useAuth0 } from "@auth0/auth0-react";
+
+export const useAuth = () => {
+ const { loginWithRedirect, logout, user, isAuthenticated, isLoading } =
+ useAuth0();
+ return {
+ loginWithRedirect,
+ logout,
+ user,
+ isAuthenticated,
+ isLoading,
+ };
+};