// import { Injectable } from '@angular/core';
// import { BehaviorSubject, Observable } from 'rxjs';
// import { IBudgetExpenseResponse, IBudgetAddResponse } from '../../interfaces/dashboard.interface';

// @Injectable({
//   providedIn: 'root'
// })
// export class BudgetStateService {
//   private budgetExpenseState = new BehaviorSubject<IBudgetExpenseResponse | null>(null);
//   private budgetAddState = new BehaviorSubject<IBudgetAddResponse | null>(null);

//   getBudgetExpenseState(): Observable<IBudgetExpenseResponse | null> {
//     return this.budgetExpenseState.asObservable();
//   }

//   setBudgetExpenseState(budgetExpense: IBudgetExpenseResponse): void {
//     this.budgetExpenseState.next(budgetExpense);
//   }

//   getBudgetAddState(): Observable<IBudgetAddResponse | null> {
//     return this.budgetAddState.asObservable();
//   }

//   setBudgetAddState(budgetAdd: IBudgetAddResponse): void {
//     this.budgetAddState.next(budgetAdd);
//   }

//   clearState(): void {
//     this.budgetExpenseState.next(null);
//     this.budgetAddState.next(null);
//   }
// }
