(type: string, account: string, container: string)
| 100 | }; |
| 101 | |
| 102 | export const useGetDataSource = (type: string, account: string, container: string) => { |
| 103 | const { dataSourcesQuery, filesQuery } = useUserSettings(); |
| 104 | const { instance } = useMsal(); |
| 105 | const client = DataSourceClientFactory(type, filesQuery.data, dataSourcesQuery.data, instance); |
| 106 | return () => client.get(account, container); |
| 107 | }; |
| 108 | |
| 109 | export const useAddDataSource = () => { |
| 110 | const { dataSourcesQuery, filesQuery } = useUserSettings(); |
no test coverage detected