chore: Use types from the web package
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { IJSONObject } from '@automatisch/types';
|
||||
import { IJSONObject } from 'types';
|
||||
|
||||
import { GET_CONFIG } from 'graphql/queries/get-config.ee';
|
||||
|
||||
type QueryResponse = {
|
||||
getConfig: IJSONObject;
|
||||
}
|
||||
};
|
||||
|
||||
export default function useConfig(keys?: string[]) {
|
||||
const { data, loading } = useQuery<QueryResponse>(GET_CONFIG, { variables: { keys } });
|
||||
const { data, loading } = useQuery<QueryResponse>(GET_CONFIG, {
|
||||
variables: { keys },
|
||||
});
|
||||
|
||||
return {
|
||||
config: data?.getConfig,
|
||||
|
Reference in New Issue
Block a user