import React from 'react';
import { absoluteStyle, defaultStyle } from './style';
import { blurhashDefaultProps } from './props';
import BlurhashCanvas from './BlurhashCanvas';
const Blurhash = ({ loading, hash, height, width, punch, resolutionX, resolutionY, style, imageRef, ...props }) => (React.createElement("div", { ...props, style: { ...defaultStyle, width, height, ...style } },
    React.createElement(BlurhashCanvas, { loading: loading, hash: hash, height: resolutionY, width: resolutionX, punch: punch, style: absoluteStyle, imageRef: imageRef })));
Blurhash.defaultProps = blurhashDefaultProps;
export default Blurhash;
//# sourceMappingURL=Blurhash.js.map