fui-fancyui
Version:
FancyUI Libary
20 lines (19 loc) • 1.07 kB
JavaScript
"use client";
import { jsxs as o, jsx as t } from "react/jsx-runtime";
import i from "../Chip/Chip.js";
import h from "../../atoms/FancyProfilePicture/FancyProfilePicture.js";
import { sizeSettings as a } from "./sizeSettings.js";
import { generateChipStyle as u } from "./FancyMiniProfile.style.js";
function z(m) {
const { sizeC: e = "sm", Image: s, title: n, subTitle: r, themeType: c, layer: p = 3, alignImage: l = "right", ...f } = m, g = u({ sizeC: e, $alignImage: l });
return /* @__PURE__ */ o(i, { sizeC: e, themeType: c, layer: p, externalStyle: g, ...f, children: [
/* @__PURE__ */ t(h, { className: "miniprofile_content-image", sizeC: "fit", children: s }),
/* @__PURE__ */ o(i.Content, { className: "miniprofile_content", alignIcon: l, gapBetweenText: "0", children: [
n && /* @__PURE__ */ t(i.Content.Title, { lineHeight: 1.2, fontVariant: a[e].titleSize, children: n }),
r && /* @__PURE__ */ t(i.Content.Description, { lineHeight: 1.1, fontVariant: a[e].subtitleSize, children: r })
] })
] });
}
export {
z as default
};