"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const style_1 = require("./style");
const props_1 = require("./props");
const BlurhashCanvas_1 = __importDefault(require("./BlurhashCanvas"));
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(BlurhashCanvas_1.default, { loading: loading, hash: hash, height: resolutionY, width: resolutionX, punch: punch, style: style_1.absoluteStyle, imageRef: imageRef })));
Blurhash.defaultProps = props_1.blurhashDefaultProps;
exports.default = Blurhash;
//# sourceMappingURL=Blurhash.js.map