import LinkedRow from './LinkedRow';
import LinkedCol from './LinkedCol';
import CodeViewer from './CodeViewer';
import Header from './Header';
import Section from './Section';
import LinkedText from './LinkedText';
import LinkedImage from './LinkedImage';
import CMSLink from './CMSLink';
import CMSGoogleLogin from './CMSGoogleLogin';
import RouteLinks from './RouteLinks';
import LinkedRoutes from './LinkedRoutes';

const defaultComponents = {
    "row": LinkedRow,
    "col": LinkedCol,
    "code": CodeViewer,
    "header": Header,
    "section": Section,
    "text": LinkedText,
    "image": LinkedImage
};

const mergeLinkedComponents = (data) => {
    return { ...defaultComponents, ...data };
}

export {
    mergeLinkedComponents,
    LinkedCol,
    LinkedRow,
    LinkedText,
    LinkedImage,
    CodeViewer,
    Header,
    Section,
    CMSGoogleLogin,
    CMSLink,
    RouteLinks, 
    LinkedRoutes
};