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