import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React from 'react';
export const RenderComponent = ({ Component, Fallback, props = {} })=>{
    if (Array.isArray(Component)) {
        return Component.map((c, index)=>/*#__PURE__*/ _jsxDEV(RenderComponent, {
                Component: c,
                props: props
            }, index, false, {
                fileName: "src/elements/RenderComponent/index.tsx",
                lineNumber: 9,
                columnNumber: 40
            }, this));
    }
    if (typeof Component === 'function') {
        return /*#__PURE__*/ _jsxDEV(Component, {
            ...props
        }, void 0, false, {
            fileName: "src/elements/RenderComponent/index.tsx",
            lineNumber: 13,
            columnNumber: 12
        }, this);
    }
    return Fallback ? /*#__PURE__*/ _jsxDEV(Fallback, {
        ...props
    }, void 0, false, {
        fileName: "src/elements/RenderComponent/index.tsx",
        lineNumber: 16,
        columnNumber: 21
    }, this) : null;
};

//# sourceMappingURL=index.js.map