const VersionService = function ($timeout, $mdTheming, themeProvider) {
  const service = {
    version: 'default',
    getVersion,
    setVersion,
  };

  return service;

  //

  function getVersion() {
    return service.version;
  }

  function setVersion(version) {
    themeProvider.setDefaultTheme(version);
    service.version = version;
  }
};

export default () => {
  angular
    .module('monumental')
    .factory('versionService', VersionService);
};
