Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
16 lines
387 B
TypeScript
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>
|
|
);
|
|
};
|