fui-fancyui
Version:
FancyUI Libary
45 lines (44 loc) • 817 B
JavaScript
"use client";
import { jsx as o } from "react/jsx-runtime";
import l from "../../molecules/TextAvatar/TextAvatar.js";
import f from "../FancyImageWrapper/FancyImageWrapper.js";
function d(m) {
const {
borderRadius: t = "complete",
sizeC: e = "md",
nickname: n = "User",
externalStyle: r,
textAvatarSettings: s,
children: a,
themeType: p = "primary",
layer: c = 2,
...i
} = m;
return a ? /* @__PURE__ */ o(
f,
{
aspectRatio: "1/1",
sizeW: e,
sizeH: e,
externalStyle: r,
borderRadius: t,
...i,
children: a
}
) : /* @__PURE__ */ o(
l,
{
borderRadius: t,
sizeC: e,
text: n,
externalStyle: r,
themeType: p,
layer: c,
...i,
...s
}
);
}
export {
d as default
};