/** @license MIT | @cube-dev/ui-kit v0.142.7 | Cube Dev Team */
import { Children, isValidElement } from "react";

//#region src/utils/react/isTextOnly.ts
function isTextOnly(children) {
	return Children.toArray(children).every((c) => !isValidElement(c));
}

//#endregion
export { isTextOnly };
//# sourceMappingURL=isTextOnly.js.map