Mission Control Dashboard - Initial implementation
This commit is contained in:
15
node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
generated
vendored
Normal file
15
node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Children, isValidElement } from 'react';
|
||||
|
||||
const getChildKey = (child) => child.key || "";
|
||||
function onlyElements(children) {
|
||||
const filtered = [];
|
||||
// We use forEach here instead of map as map mutates the component key by preprending `.$`
|
||||
Children.forEach(children, (child) => {
|
||||
if (isValidElement(child))
|
||||
filtered.push(child);
|
||||
});
|
||||
return filtered;
|
||||
}
|
||||
|
||||
export { getChildKey, onlyElements };
|
||||
//# sourceMappingURL=utils.mjs.map
|
||||
Reference in New Issue
Block a user