11import { QueryClient , QueryClientProvider } from '@tanstack/react-query' ;
22import { useState } from 'react' ;
3+ import { useApplicationQuery } from '@/feature/application/application/application-query' ;
4+ import { implApplicationUsecase } from '@/feature/application/usecase/application-usecase' ;
35import { useAuthQuery } from '@/feature/auth/application/auth-query' ;
46import { implAuthUsecase } from '@/feature/auth/usecase/auth-usecase' ;
7+ import { implFileUsecase } from '@/feature/file/usecase/file-usecase' ;
58import { QueryContext } from '@/feature/shared/context/query-context' ;
69import { ReviewContext } from '@/feature/shared/context/review-context' ;
710import { TokenContext } from '@/feature/shared/context/token-context' ;
@@ -10,6 +13,8 @@ import { RouterProvider } from '@/feature/shared/routes/router-provider';
1013import { useStoreQuery } from '@/feature/store/application/store-query' ;
1114import { implStoreUsecase } from '@/feature/store/usecase/store-usecase' ;
1215import { externalCall , implApi } from '@/infrastructure/api' ;
16+ import { implStorageApi } from '@/infrastructure/api/client' ;
17+ import { externalStorageCall } from '@/infrastructure/api/external-call' ;
1318import { implTokenRepository } from '@/infrastructure/token/token-repository' ;
1419
1520const queryClient = new QueryClient ( {
@@ -26,14 +31,18 @@ const AppContent = () => {
2631 const [ storeId , setStoreId ] = useState < string | null > ( null ) ;
2732 const [ eventId , setEventId ] = useState < string | null > ( null ) ;
2833 const api = implApi ( { externalCall } ) ;
34+ const storageApi = implStorageApi ( { externalStorageCall } ) ;
2935 const tokenRepository = implTokenRepository ( { setToken } ) ;
3036 const authUsecase = implAuthUsecase ( { api, tokenRepository } ) ;
3137 const authQuery = useAuthQuery ( { authUsecase } ) ;
3238 const storeUsecase = implStoreUsecase ( { api } ) ;
3339 const storeQuery = useStoreQuery ( { storeUsecase } ) ;
40+ const fileUsecase = implFileUsecase ( { api, storageApi } ) ;
41+ const applicationUsecase = implApplicationUsecase ( { api, fileUsecase } ) ;
42+ const applicationQuery = useApplicationQuery ( { applicationUsecase } ) ;
3443
3544 return (
36- < QueryContext . Provider value = { { authQuery, storeQuery } } >
45+ < QueryContext . Provider value = { { authQuery, storeQuery, applicationQuery } } >
3746 < TokenContext . Provider value = { { token } } >
3847 < UsecaseContext . Provider value = { { authUsecase } } >
3948 < ReviewContext . Provider
0 commit comments