Build 589089stable
Module 70613
391 characters · in a977be9c53f21877.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>s});var r=n(477900),l=n(582128),a=n(318660);let s=function(e){let{colors:t,angle:n=180,padding:s=16,children:i}=e,c=l.useMemo(()=>{if(t.length>1)return`linear-gradient(${n}deg, ${t.join(", ")})`;if(t.length>0){let e=t[0];return`linear-gradient(${n}deg, ${e}, ${e})`}},[t,n]);return(0,r.jsx)("div",{className:a.k,style:{backgroundImage:c,padding:s},children:i})}}