Skip to main content

buildRecurrenceOptions

Admin Docs


Function: buildRecurrenceOptions()

buildRecurrenceOptions(startDate, t): InterfaceRecurrenceOption[]

Defined in: src/shared-components/EventForm/utils/recurrenceOptions.ts:26

Builds an array of recurrence options based on the event start date.

Parameters

startDate

Date

The event start date

t

(key, options?) => string

Translation function for option labels

Returns

InterfaceRecurrenceOption[]

Array of recurrence options for the dropdown