diff --git a/Client/src/Pages/Status/TabContext/index.jsx b/Client/src/Pages/Status/TabContext/index.jsx new file mode 100644 index 000000000..75567d7a8 --- /dev/null +++ b/Client/src/Pages/Status/TabContext/index.jsx @@ -0,0 +1,29 @@ +import { createContext, useState, React } from 'react'; + +const StatusFormContext = createContext({ + form: {}, + setForm: ()=>{}, +}); + +const StatusFormProvider = ({ children }) => { + const [form, setForm] = useState({ + companyName: "", + url: "", + timezone: "America/Toronto", + color: "#4169E1", + //which fields matching below? + publish: false, + logo: null, + monitors: [], + showUptimePercentage: false, + showBarcode: false, + }); + + return ( + + {children} + + ); +}; + +export { StatusFormContext, StatusFormProvider }; \ No newline at end of file