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.
18 lines
422 B
18 lines
422 B
import type React from "react";
|
|
|
|
import { DeviceContext } from "@core/providers/useDevice.js";
|
|
import type { Device } 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>
|
|
);
|
|
};
|
|
|