import Recurring from "../../../Types/Events/Recurring";
import React from "react";
import RecurringViewElement from "./RecurringViewElement";
const RecurringArrayViewElement = (props) => {
    if (!props.value) {
        return React.createElement("p", null, "-");
    }
    const items = Recurring.fromJSONArray(props.value);
    return (React.createElement("div", { className: "space-y-2" },
        items &&
            items.length > 0 &&
            items.map((item, index) => {
                return (React.createElement(RecurringViewElement, { key: index, value: item, postfix: props.postfix }));
            }),
        (!items || items.length === 0) && React.createElement("p", null, props.noItemsMessage || "-")));
};
export default RecurringArrayViewElement;
//# sourceMappingURL=RecurringArrayViewElement.js.map