import React from 'react';
import { AdvancedScheduler } from './advanced-scheduler';
import { SimpleScheduler } from './simple-scheduler';
import { ButtonSwitcher } from './button-switcher';
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
export function WithButtonSwitcherSchedulerContainer({
  showAdvancedScheduler,
  onUpdateSchedule,
  isDisabled,
  validationTexts,
  initialSchedule,
  schedulerKey,
  validateArrayOfRangedNumbersOrAll,
  simpleSchedulerToggleButtonText,
  advancedSchedulerToggleButtonText,
  simpleSchedulerModalTexts,
  advancedSchedulerInfoTexts,
  labelTexts,
  frequencyOptions,
  daysOfWeek,
  months,
  onUseSimpleScheduler,
  onUseAdvancedScheduler,
  advancedSchedulerSwitcherIcon,
  simpleSchedulerSwitcherIcon
}) {
  const switcherIcon = showAdvancedScheduler ? simpleSchedulerSwitcherIcon : advancedSchedulerSwitcherIcon;
  return /*#__PURE__*/_jsxs(_Fragment, {
    children: [showAdvancedScheduler ? /*#__PURE__*/_jsx(AdvancedScheduler, {
      onUpdateSchedule: onUpdateSchedule,
      initialSchedule: initialSchedule,
      validateArrayOfRangedNumbersOrAll: validateArrayOfRangedNumbersOrAll,
      labelTexts: labelTexts,
      infoTexts: advancedSchedulerInfoTexts,
      isDisabled: isDisabled
    }, schedulerKey) : /*#__PURE__*/_jsx(SimpleScheduler, {
      onUpdateSchedule: onUpdateSchedule,
      initialSchedule: initialSchedule,
      frequencyOptions: frequencyOptions,
      validateArrayOfRangedNumbersOrAll: validateArrayOfRangedNumbersOrAll,
      daysOfWeek: daysOfWeek,
      months: months,
      labelTexts: labelTexts,
      validationTexts: validationTexts,
      isDisabled: isDisabled
    }, schedulerKey), /*#__PURE__*/_jsx(ButtonSwitcher, {
      showAdvancedScheduler: showAdvancedScheduler,
      advancedSchedulerToggleButtonText: advancedSchedulerToggleButtonText,
      onUseAdvancedScheduler: onUseAdvancedScheduler,
      simpleSchedulerModalTexts: simpleSchedulerModalTexts,
      simpleSchedulerToggleButtonText: simpleSchedulerToggleButtonText,
      onUseSimpleScheduler: onUseSimpleScheduler,
      isDisabled: isDisabled,
      icon: switcherIcon
    })]
  });
}