'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var api = require('./api.js');

/**
 * Returns the metadata of the extension.
 */
function useExtension() {
  return api.useApi().extension;
}

/**
 * Returns the metadata about the extension.
 * > Caution: This is deprecated, use `useExtension()` instead.
 * @deprecated Use `useExtension()` instead.
 */
function useExtensionData() {
  return useExtension();
}

exports.useExtension = useExtension;
exports.useExtensionData = useExtensionData;
