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