import EventInterval from "../../../Types/Events/EventInterval";
import Recurring from "../../../Types/Events/Recurring";
import React from "react";
const RecurringViewElement = (props) => {
    var _a, _b;
    if (!props.value) {
        return React.createElement("p", null, "-");
    }
    const value = Recurring.fromJSON(props.value);
    return (React.createElement("p", null, (_a = value.intervalCount) === null || _a === void 0 ? void 0 :
        _a.toString(),
        " ", (_b = EventInterval[value.intervalType]) === null || _b === void 0 ? void 0 :
        _b.toString(),
        value.intervalCount && value.intervalCount.toNumber() > 1 ? "s" : "",
        props.postfix || ""));
};
export default RecurringViewElement;
//# sourceMappingURL=RecurringViewElement.js.map