{"version":3,"sources":["../src/utils.ts"],"names":["Children","isValidElement","getValidChildren","children","child"],"mappings":";AAAA,OAAS,YAAAA,EAAU,kBAAAC,MAAsB,QAQlC,SAASC,EAAiBC,EAA2B,CAC1D,OAAOH,EAAS,QAAQG,CAAQ,EAAE,OAAQC,GACxCH,EAAeG,CAAK,CACtB,CACF","sourcesContent":["import { Children, isValidElement } from \"react\";\n\n/**\n * Gets only the valid children of a component,\n * and ignores any nullish or falsy child.\n *\n * @param children the children\n */\nexport function getValidChildren(children: React.ReactNode) {\n  return Children.toArray(children).filter((child) =>\n    isValidElement(child),\n  ) as React.ReactElement[];\n}\n"]}