repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
components
/
hooks
/
useApi.ts
blob
f354e09f6a3fcf40a9d1e95ba1ae629c38ee6943
1
import { useContext } from 'react';
2
3
import type { Api } from '@proton/shared/lib/interfaces';
4
5
import ContextApi from '../containers/api/apiContext';
6
7
const useApi = (): Api => {
8
return useContext(ContextApi);
9
};
10
11
export default useApi;