import { Children, isValidElement } from "react";
const getChildKey = (child) => child.key || "";
function onlyElements(children) {
  const filtered = [];
  Children.forEach(children, (child) => {
    if (isValidElement(child))
      filtered.push(child);
  });
  return filtered;
}
export {
  getChildKey,
  onlyElements
};
//# sourceMappingURL=utils.js.map
