
import React from 'react';
import { useBudgetState } from './useBudgetState';
import { BudgetContext, BudgetContextType } from './useBudget';
import { BudgetPeriod } 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';

export type { BudgetPeriod } from './types';
