spinner.js 661 B

123456789101112131415161718192021222324252627
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const React = require("devtools/client/shared/vendor/react");
  6. // Shortcuts
  7. const DOM = React.DOM;
  8. /**
  9. * This template represents a throbber displayed when the UI
  10. * is waiting for data coming from the backend (debugging server).
  11. */
  12. var Spinner = React.createClass({
  13. displayName: "Spinner",
  14. render() {
  15. return (
  16. DOM.div({className: "devtools-throbber"})
  17. );
  18. }
  19. });
  20. // Exports from this module
  21. module.exports = Spinner;