system information provider remove unusual
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
import { useContext } from "react";
|
|
||||||
import { DeviceProviderContext } from "./DeviceProvider";
|
|
||||||
|
|
||||||
export function useDeviceId(): string {
|
|
||||||
const context = useContext(DeviceProviderContext);
|
|
||||||
if(!context) {
|
|
||||||
throw new Error("useDeviceId must be used within a DeviceProvider");
|
|
||||||
}
|
|
||||||
|
|
||||||
return context.deviceId;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user