"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _components = require("@wordpress/components");
var _useSettings = require("../use-settings");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

function FontSizePicker(props) {
  const [fontSizes, customFontSize] = (0, _useSettings.useSettings)('typography.fontSizes', 'typography.customFontSize');
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FontSizePicker, {
    ...props,
    fontSizes: fontSizes,
    disableCustomFontSizes: !customFontSize
  });
}

/**
 * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/font-sizes/README.md
 */
var _default = exports.default = FontSizePicker;
//# sourceMappingURL=font-size-picker.js.map