<reponame>Amazon-Connect-Equipo-1/AWS<filename>FrontHttpsDiscord/ac-front-test/src/components/GlobalSupplier.js<gh_stars>0/* Global Supplier
Authors:
        A01777771 Stephen Strange*/

//Import Modules
import { createContext, useState } from "react";

//Create recordings context
export const GlobalContext = createContext();

const GlobalSupplier = ({ children }) => {
  // State to keep last state in recordings
  const [recordingInfo, setRecordingInfo] = useState({
    id: 1,
    agent: 11,
    agent_name: "Jim Halpert",
    tags: ["Business", "Work", "Theft"],
    minitureURL: "http://amazon.aws.com/videominiature1",
    videoURL: "http://amazon.aws.com/video1",
    rating: 4,
    date: "02/12/2022",
  });

  // Need a petition for this
  const dummyUser = {
    name: "Jim Halpert",
    id: 3005,
    email: "lyhxr@example.com",
  };
  // Info of the QA or Admin
  const [userInfo, setUserInfo] = useState(dummyUser);

  return (
    <GlobalContext.Provider value={[recordingInfo, setRecordingInfo, userInfo]}>
      {children}
    </GlobalContext.Provider>
  );
};

export default GlobalSupplier;
