detect if user has patchmatch enabled

This commit is contained in:
Mary Hipp
2023-07-12 11:56:40 -04:00
committed by psychedelicious
parent fba25792f9
commit d6c914eedc
5 changed files with 2098 additions and 1589 deletions

View File

@ -1,5 +1,5 @@
import { api } from '..';
import { AppVersion } from '../types';
import { AppVersion, AppConfig } from '../types';
export const appInfoApi = api.injectEndpoints({
endpoints: (build) => ({
@ -9,7 +9,13 @@ export const appInfoApi = api.injectEndpoints({
method: 'GET',
}),
}),
getAppConfig: build.query<AppConfig, void>({
query: () => ({
url: `app/config`,
method: 'GET',
}),
}),
}),
});
export const { useGetAppVersionQuery } = appInfoApi;
export const { useGetAppVersionQuery, useGetAppConfigQuery } = appInfoApi;