import { useApi } from './api.mjs';

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

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

export { useExtension, useExtensionData };
