| 4 | import {urlWithSlash} from './url'; |
| 5 | |
| 6 | export interface UseConfig extends UIConfig { |
| 7 | login: (username: string, password: string) => Promise<void>; |
| 8 | refetch: () => void; |
| 9 | logout: () => Promise<void>; |
| 10 | loading: boolean; |
| 11 | } |
| 12 | |
| 13 | export const useConfig = (): UseConfig => { |
| 14 | const {enqueueSnackbar} = useSnackbar(); |
nothing calls this directly
no outgoing calls
no test coverage detected