fui-fancyui
Version:
FancyUI Libary
40 lines (39 loc) • 950 B
JavaScript
"use client";
import { jsx as t } from "react/jsx-runtime";
import f from "../../atoms/Typography/Typography.js";
import { Placeholder as h } from "./TextAvatar.style.js";
import { getTextSize as u } from "../../atoms/FancyProfilePicture/utils/getTextSize.js";
import { generateText as x } from "./utils/generateText.js";
function C(o) {
const {
borderRadius: a = "complete",
sizeC: e = "md",
color: l,
backgroundColor: i,
themeType: n = "primary",
layer: m = 2,
fontSizes: p,
externalStyle: c,
text: r,
letterLength: s,
casing: d,
...y
} = o;
return /* @__PURE__ */ t(
h,
{
$borderRadius: a,
$sizeC: e,
$color: l,
$backgroundColor: i,
$externalStyle: c,
$themeType: n,
$layer: m,
...y,
children: /* @__PURE__ */ t(f, { elType: "span", variant: p || u(e), children: r ? x(r, s ?? 2, d) : "" })
}
);
}
export {
C as default
};