import { getClientName } from "./utils.js";
import React, { useMemo } from "react";
import classNames from "classnames";
import "./index.less";
//#region src/plus/clientName/index.tsx
const ClientName = ({ className, dataSource, style }) => {
	const name = useMemo(() => {
		return getClientName(dataSource);
	}, [dataSource]);
	if (!dataSource) return null;
	return /* @__PURE__ */ React.createElement("div", {
		className: classNames("pisell-client-name", className),
		style: style || {}
	}, name);
};
//#endregion
export { ClientName as default };
