UNPKG

@redpill-paris/quidol-ui

Version:

**quidol-ui** is a framework css create for the project Quidol Live.

3 lines (2 loc) 806 B
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react"),r=e(t),o=require("styled-components"),n=(e(o),require("../WrapperLottie/index.js")),i=require("./AnimationModalStyle.js"),a=require("../Portal/index.js");module.exports=function(e){var s=t.useContext(o.ThemeContext),l=e.className,u=void 0===l?"":l,c=e.lottieStyle,d=void 0===c?{width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.7"}:c,m=e.isVisible,b=e.backgroundColor,g=void 0===b?s.colors.translucentBackground:b,x=e.backgroundPress,f=void 0===x?function(){}:x,k=e.zIndex,p=e.animation;return r.createElement(a,{isVisible:m,backgroundColor:g,backgroundPress:f,zIndex:k},r.createElement(i,{className:u},r.createElement(n,{animation:p,style:d,loop:!1})))}; //# sourceMappingURL=index.js.map