Vollständiges Redesign mit Gold-Formularen, BMP-Logo, multi-step Forms (Bewerbung, Kontakt, Sponsoring), Netlify-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
471 B
JavaScript
16 lines
471 B
JavaScript
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
|