"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Blurhash = exports.BlurhashCanvas = void 0;
// fake modules to render empty <canvas /> on SSR side without useless JS, import.meta, webworker, ES modules
const react_1 = __importDefault(require("react"));
const style_1 = require("./style");
const props_1 = require("./props");
const BlurhashCanvas = ({ loading, hash, width, height, punch, imageRef, ...props }) => (react_1.default.createElement("canvas", { ...props, height: height, width: width }));
exports.BlurhashCanvas = BlurhashCanvas;
exports.BlurhashCanvas.defaultProps = props_1.blurhashCanvasDefaultProps;
const Blurhash = ({ loading, hash, height, width, punch, resolutionX, resolutionY, style, imageRef, ...props }) => (react_1.default.createElement("div", { ...props, style: { ...style_1.defaultStyle, width, height, ...style } },
    react_1.default.createElement(exports.BlurhashCanvas, { loading: loading, hash: hash, height: resolutionY, width: resolutionX, punch: punch, style: style_1.absoluteStyle, imageRef: imageRef })));
exports.Blurhash = Blurhash;
exports.Blurhash.defaultProps = props_1.blurhashDefaultProps;
//# sourceMappingURL=index.node.js.map