WIP updates
This commit is contained in:
@@ -3,15 +3,15 @@ import type React from "react";
|
||||
import { DeviceContext } from "@core/providers/useDevice.js";
|
||||
import type { Device } from "@core/stores/deviceStore.js";
|
||||
|
||||
export interface DeviceProps {
|
||||
export interface DeviceWrapperProps {
|
||||
children: React.ReactNode;
|
||||
device: Device;
|
||||
}
|
||||
|
||||
export const DeviceWrapper = ({
|
||||
children,
|
||||
device,
|
||||
}: DeviceProps): JSX.Element => {
|
||||
device
|
||||
}: DeviceWrapperProps): JSX.Element => {
|
||||
return (
|
||||
<DeviceContext.Provider value={device}>{children}</DeviceContext.Provider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user