/** * EExternal dependencies */ import type { RecurrenceContext, RecurrenceSettings, } from '@nelio-content/types'; /** * Internal dependencies */ import type { State } from '../types'; export function getRecurrenceMode( state: State ): State[ 'recurrence' ][ 'mode' ] { return state.recurrence.mode; } export function isRecurrenceEnabled( state: State ): boolean { return state.recurrence.enabled; } export function isEditingRecurrenceSettings( state: State ): boolean { return state.recurrence.editing; } export function getRecurrenceSettings( state: State ): RecurrenceSettings { return state.recurrence.settings; } export function getRecurrenceContext( state: State ): RecurrenceContext { return state.recurrence.context; }