import { useDashboardContext } from '@/contexts/DashboardContext';

/**
 * Hook for dashboard pages to access period and dummy data state
 * This replaces the local useState for period and useDummyData hook
 */
export function useDashboardPeriod() {
  const { period, setPeriod, useDummyData } = useDashboardContext();
  
  return {
    period,
    setPeriod,
    useDummy: useDummyData,
  };
}
