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