Files
meshtastic-web/apps/web/src/DeviceWrapper.tsx
T
AustinandGitHub d2cb51d489 Execute oxfmt (#1166)
Ran
pnpm oxfmt .

This should get the web repo aligned so that we can better enforce oxfmt going forward.
2026-06-16 20:30:08 -04:00

16 lines
387 B
TypeScript

import { CurrentDeviceContext } from "@core/stores";
import type { ReactNode } from "react";
export interface DeviceWrapperProps {
children: ReactNode;
deviceId: number;
}
export const DeviceWrapper = ({ children, deviceId }: DeviceWrapperProps) => {
return (
<CurrentDeviceContext.Provider value={{ deviceId }}>
{children}
</CurrentDeviceContext.Provider>
);
};