let moment: any;

// Moment is an optional dependency
export const getMoment = () => {
  if (!moment) {
    try {
    moment = require('moment');
    } catch {
      // Moment is not available
    }
  }

  return moment;
};
