Files
zellyy-finance/src/contexts/budget/BudgetContext.tsx
gpt-engineer-app[bot] 3911040b00 Fix TS2614 and TS1205 errors
Corrected import/export of Transaction type and fixed isolatedModules error.
2025-03-22 07:23:09 +00:00

24 lines
773 B
TypeScript

import React from 'react';
import { useBudgetState } from './useBudgetState';
import { BudgetContext, BudgetContextType } from './useBudget';
import { BudgetPeriod, Transaction } from './types';
// 컨텍스트 프로바이더 컴포넌트
export const BudgetProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const budgetState = useBudgetState();
return (
<BudgetContext.Provider value={budgetState}>
{children}
</BudgetContext.Provider>
);
};
// useBudget 훅은 useBudget.ts 파일로 이동했습니다
export { useBudget } from './useBudget';
export type { BudgetContextType } from './useBudget';
// types.ts에서 타입들을 export type으로 내보냅니다
export type { BudgetPeriod, Transaction } from './types';