(type: string, account: string, container)
| 93 | }; |
| 94 | |
| 95 | export const useSyncDataSource = (type: string, account: string, container) => { |
| 96 | const { dataSourcesQuery, filesQuery } = useUserSettings(); |
| 97 | const { instance } = useMsal(); |
| 98 | const client = DataSourceClientFactory(type, filesQuery.data, dataSourcesQuery.data, instance); |
| 99 | return () => client.sync(account, container); |
| 100 | }; |
| 101 | |
| 102 | export const useGetDataSource = (type: string, account: string, container: string) => { |
| 103 | const { dataSourcesQuery, filesQuery } = useUserSettings(); |
no test coverage detected