import * as React from "react";
import componentDetailExampleFactory from "./component-detail-example-factory";
import componentExampleFactory from "./component-example-factory";
import componentDocumentationFactory from "./component-documentation-factory";
import { SiteCategory, SiteSlot } from "../";
export default function componentFactory(examples, designSystem) {
    return Object.keys(examples).map((exampleKey, index) => {
        const example = examples[exampleKey];
        return (React.createElement(SiteCategory, { key: index, slot: SiteSlot.category, name: example.name, schema: example.schema, component: example.component },
            componentDetailExampleFactory(example.detailData, designSystem),
            componentExampleFactory(examples, exampleKey, designSystem),
            componentDocumentationFactory(example.documentation)));
    });
}
//# sourceMappingURL=component-factory.js.map