"use strict";

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

/**
 * Internal dependencies
 */

const DuotoneExamples = ({
  duotones
}) => {
  if (!duotones) {
    return null;
  }
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalGrid, {
    columns: 2,
    rowGap: 16,
    columnGap: 16,
    children: duotones.map(duotone => {
      return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.__experimentalGrid, {
        className: "edit-site-style-book__duotone-example",
        columns: 2,
        rowGap: 8,
        columnGap: 8,
        children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.View, {
          children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
            alt: `Duotone example: ${duotone.slug}`,
            src: "https://s.w.org/images/core/5.3/MtBlanc1.jpg",
            style: {
              filter: `url(#wp-duotone-${duotone.slug})`
            }
          })
        }), duotone.colors.map(color => {
          return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.View, {
            className: "edit-site-style-book__color-example",
            style: {
              backgroundColor: color
            }
          }, color);
        })]
      }, duotone.slug);
    })
  });
};
var _default = exports.default = DuotoneExamples;
//# sourceMappingURL=duotone-examples.js.map