import n, { isValidElement as u } from "react";
import b from "../../../../../../../../_virtual/index9.js";
import { get as g } from "../../helpers/checkboard.js";
var s = Object.assign || function(o) {
  for (var r = 1; r < arguments.length; r++) {
    var e = arguments[r];
    for (var t in e)
      Object.prototype.hasOwnProperty.call(e, t) && (o[t] = e[t]);
  }
  return o;
}, h = function(r) {
  var e = r.white, t = r.grey, i = r.size, l = r.renderers, p = r.borderRadius, c = r.boxShadow, a = r.children, d = b({
    default: {
      grid: {
        borderRadius: p,
        boxShadow: c,
        absolute: "0px 0px 0px 0px",
        background: "url(" + g(e, t, i, l.canvas) + ") center left"
      }
    }
  });
  return u(a) ? n.cloneElement(a, s({}, a.props, { style: s({}, a.props.style, d.grid) })) : n.createElement("div", { style: d.grid });
};
h.defaultProps = {
  size: 8,
  white: "transparent",
  grey: "rgba(0,0,0,.08)",
  renderers: {}
};
export {
  h as Checkboard,
  h as default
};
//# sourceMappingURL=Checkboard.js.map
