import { 
  createContext, 
  useContext 
} from 'react';

const TimezoneContext = createContext({
  customerTimezone: null,
  setCustomerTimezone: () => {},
  preference: undefined, // undefined indicates default context, real Provider will always provide a value
  setPreference: () => {}
});

export const useTimezoneContext = () => useContext(TimezoneContext);

export default TimezoneContext;