const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_utils = require("../../utils.js");
const require_index = require("../../index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
require("../../index.less");
//#region src/plus/contactInfo/components/Avatar/index.tsx
const Avatar = (props) => {
	const { config, name, cover } = props;
	const { useTextAvatar, children } = config || {};
	if (useTextAvatar) {
		const text = children || require_utils.getAvatarText(name);
		return /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__avatar-wrapper` }, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellAvatar, require_objectSpread2._objectSpread2({ className: `${require_index.PREFIX}__avatar` }, config || {}), text));
	}
	return /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__avatar-wrapper` }, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellAvatar, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({ className: `${require_index.PREFIX}__avatar` }, config || {}), {}, { src: cover || "" })));
};
//#endregion
exports.default = Avatar;
