import { MasterAssetData } from './excelHandler';
import { generateDummyData } from './dummyDataGenerator';

// --- State Definitions ---
export interface AppState {
  masterData: MasterAssetData;
  activeCategory: 'hw' | 'sw';
  activeSubTab: string;
  activeCharts: any[];
}

// --- Initial State ---
export const state: AppState = {
  masterData: generateDummyData(),
  activeCategory: 'hw',
  activeSubTab: '대시보드',
  activeCharts: []
};

// --- State Helpers ---
export function updateState(newState: Partial<AppState>) {
  Object.assign(state, newState);
}
