"use client";
const require_is_element = require("../is-element/is-element.cjs");
let react = require("react");
//#region packages/@mantine/core/src/core/utils/get-single-element-child/get-single-element-child.ts
function getSingleElementChild(children) {
	const _children = react.Children.toArray(children);
	if (_children.length !== 1 || !require_is_element.isElement(_children[0])) return null;
	return _children[0];
}
//#endregion
exports.getSingleElementChild = getSingleElementChild;

//# sourceMappingURL=get-single-element-child.cjs.map