mirror of
https://github.com/meshtastic/web.git
synced 2026-01-28 09:21:35 -05:00
18 lines
371 B
TypeScript
18 lines
371 B
TypeScript
import type React from "react";
|
|
|
|
import { Device, DeviceContext } from "./core/stores/deviceStore.js";
|
|
|
|
export interface DeviceProps {
|
|
children: React.ReactNode;
|
|
device: Device;
|
|
}
|
|
|
|
export const DeviceWrapper = ({
|
|
children,
|
|
device,
|
|
}: DeviceProps): JSX.Element => {
|
|
return (
|
|
<DeviceContext.Provider value={device}>{children}</DeviceContext.Provider>
|
|
);
|
|
};
|