"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.currentlyPreviewingTheme = currentlyPreviewingTheme;
exports.isPreviewingTheme = isPreviewingTheme;
var _url = require("@wordpress/url");
/**
 * WordPress dependencies
 */

function isPreviewingTheme() {
  return !!(0, _url.getQueryArg)(window.location.href, 'wp_theme_preview');
}
function currentlyPreviewingTheme() {
  if (isPreviewingTheme()) {
    return (0, _url.getQueryArg)(window.location.href, 'wp_theme_preview');
  }
  return null;
}
//# sourceMappingURL=is-previewing-theme.js.map