/**
 * WordPress dependencies
 */
import { __experimentalGrid as Grid } from '@wordpress/components';
import { View } from '@wordpress/primitives';

/**
 * Internal dependencies
 */
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const DuotoneExamples = ({
  duotones
}) => {
  if (!duotones) {
    return null;
  }
  return /*#__PURE__*/_jsx(Grid, {
    columns: 2,
    rowGap: 16,
    columnGap: 16,
    children: duotones.map(duotone => {
      return /*#__PURE__*/_jsxs(Grid, {
        className: "edit-site-style-book__duotone-example",
        columns: 2,
        rowGap: 8,
        columnGap: 8,
        children: [/*#__PURE__*/_jsx(View, {
          children: /*#__PURE__*/_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__*/_jsx(View, {
            className: "edit-site-style-book__color-example",
            style: {
              backgroundColor: color
            }
          }, color);
        })]
      }, duotone.slug);
    })
  });
};
export default DuotoneExamples;
//# sourceMappingURL=duotone-examples.js.map