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