12 lines
234 B
JavaScript
12 lines
234 B
JavaScript
// @flow
|
|
import React from "react";
|
|
|
|
export type MqttContextValue = {
|
|
state: State,
|
|
changeState: (topic: string, value: string) => void
|
|
};
|
|
|
|
export default React.createContext({
|
|
state: {},
|
|
changeState: (_topic, _val) => {}
|
|
});
|