const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_utils = require("./utils.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/plus/clientName/index.tsx
const ClientName = ({ className, dataSource, style }) => {
	const name = (0, react.useMemo)(() => {
		return require_utils.getClientName(dataSource);
	}, [dataSource]);
	if (!dataSource) return null;
	return /* @__PURE__ */ react.default.createElement("div", {
		className: (0, classnames.default)("pisell-client-name", className),
		style: style || {}
	}, name);
};
//#endregion
exports.default = ClientName;
