// packages/block-library/src/social-link/index.js
import { __ } from "@wordpress/i18n";
import { share as icon } from "@wordpress/icons";
import initBlock from "../utils/init-block";
import edit from "./edit";
import metadata from "./block.json";
import variations from "./variations";
var { name } = metadata;
var settings = {
  icon,
  edit,
  variations
};
if (window.__experimentalContentOnlyPatternInsertion) {
  settings.fields = [
    {
      label: __("Link"),
      type: "Link",
      shownByDefault: true,
      mapping: {
        href: "url",
        rel: "rel"
      }
    },
    {
      label: __("Label"),
      type: "RichText",
      shownByDefault: false,
      mapping: {
        value: "label"
      }
    }
  ];
}
var init = () => initBlock({ name, metadata, settings });
export {
  init,
  metadata,
  name,
  settings
};
//# sourceMappingURL=index.js.map
