import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
// (C) 2024-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { transformRecurrenceTypeToDescription } from "./utils/utils.js";
export function RepeatTypeDescription(props) {
    const intl = useIntl();
    const { repeatType, startDate, weekStart, timezone, showTimezone } = props;
    return (_jsx("div", { className: "gd-recurrence-form-repeat-type-description s-recurrence-form-repeat-type-description", children: _jsxs("span", { children: [transformRecurrenceTypeToDescription(intl, repeatType, startDate, weekStart), showTimezone && timezone ? (_jsxs(_Fragment, { children: [" ", timezone, " ", intl.formatMessage({ id: "gs.time" })] })) : null] }) }));
}
//# sourceMappingURL=RepeatTypeDescription.js.map