refactor(web): remove typescript
This commit is contained in:
12
packages/web/src/hooks/useApp.js
Normal file
12
packages/web/src/hooks/useApp.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { GET_APP } from 'graphql/queries/get-app';
|
||||
export default function useApp(key) {
|
||||
const { data, loading } = useQuery(GET_APP, {
|
||||
variables: { key },
|
||||
});
|
||||
const app = data?.getApp;
|
||||
return {
|
||||
app,
|
||||
loading,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user