/**
 * WordPress dependencies
 */
import { getQueryArg } from '@wordpress/url';
export function isPreviewingTheme() {
  return !!getQueryArg(window.location.href, 'wp_theme_preview');
}
export function currentlyPreviewingTheme() {
  if (isPreviewingTheme()) {
    return getQueryArg(window.location.href, 'wp_theme_preview');
  }
  return null;
}
//# sourceMappingURL=is-previewing-theme.js.map