import { Children, isValidElement } from "react";
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
var getChildKey = (child) => child.key || "";
function onlyElements(children) {
	const filtered = [];
	Children.forEach(children, (child) => {
		if (isValidElement(child)) filtered.push(child);
	});
	return filtered;
}
//#endregion
export { getChildKey, onlyElements };

//# sourceMappingURL=index307.js.map