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>
19 lines
624 B
JavaScript
19 lines
624 B
JavaScript
import { SVGVisualElement, HTMLVisualElement } from 'motion-dom';
|
|
import { Fragment } from 'react';
|
|
import { isSVGComponent } from './utils/is-svg-component.mjs';
|
|
|
|
const createDomVisualElement = (Component, options) => {
|
|
/**
|
|
* Use explicit isSVG override if provided, otherwise auto-detect
|
|
*/
|
|
const isSVG = options.isSVG ?? isSVGComponent(Component);
|
|
return isSVG
|
|
? new SVGVisualElement(options)
|
|
: new HTMLVisualElement(options, {
|
|
allowProjection: Component !== Fragment,
|
|
});
|
|
};
|
|
|
|
export { createDomVisualElement };
|
|
//# sourceMappingURL=create-visual-element.mjs.map
|