You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
419 B
14 lines
419 B
import { DeviceContext } from "@core/stores/deviceStore.ts";
|
|
import type { Device } from "@core/stores/deviceStore.ts";
|
|
import type { ReactNode } from "react";
|
|
|
|
export interface DeviceWrapperProps {
|
|
children: ReactNode;
|
|
device?: Device;
|
|
}
|
|
|
|
export const DeviceWrapper = ({ children, device }: DeviceWrapperProps) => {
|
|
return (
|
|
<DeviceContext.Provider value={device}>{children}</DeviceContext.Provider>
|
|
);
|
|
};
|
|
|