refactor(web): remove typescript
This commit is contained in:
10
packages/web/src/hooks/useAutomatischInfo.js
Normal file
10
packages/web/src/hooks/useAutomatischInfo.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as React from 'react';
|
||||
import { AutomatischInfoContext } from 'contexts/AutomatischInfo';
|
||||
export default function useAutomatischInfo() {
|
||||
const automatischInfoContext = React.useContext(AutomatischInfoContext);
|
||||
return {
|
||||
isCloud: automatischInfoContext.isCloud,
|
||||
isMation: automatischInfoContext.isMation,
|
||||
loading: automatischInfoContext.loading,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user