// GlobalStateContext.js
import React, { useState } from "react";
import GlobalStateContext from "./GlobalStateContext";


const GlobalStateProvider = ({ children }) => {
  const [isAuthenticate, setIsAuthenticate] = useState(false);

  const [transactions, setTransactions] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);

  const [ overview, setOverview] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);

  const [ subnet, setSubnet] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzABCDEFGHIJKLMNOPQRS5674577TUV WXYZ !"§ $%&',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 5,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 6,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 7,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 8,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 9,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 10,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 11,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);

  return (
    <GlobalStateContext.Provider
      value={{
        isAuthenticate,
        setIsAuthenticate,
        transactions,
        setTransactions,
        overview,
        setOverview,
        subnet,
        setSubnet,
      }}
    >
      {children}
    </GlobalStateContext.Provider>
  );
};
export default GlobalStateProvider;
