@opalkelly/frontpanel-react-components
Version:
React Component Library for OpalKelly FrontPanel application development
25 lines (19 loc) • 603 B
text/typescript
/**
* Copyright (c) 2024 Opal Kelly Incorporated
*
* This source code is licensed under the FrontPanel license.
* See the LICENSE file found in the root directory of this project.
*/
import React from "react";
import {
IFrontPanel,
IFrontPanelEventSource,
WorkQueue
} from "@opalkelly/frontpanel-platform-api";
export type FrontPanelContextValue = {
device?: IFrontPanel;
workQueue?: WorkQueue;
eventSource?: IFrontPanelEventSource;
};
const FrontPanelContext = React.createContext<FrontPanelContextValue>({});
export default FrontPanelContext;