"use client"; import { memo } from "react"; import Create from "../../../../components/modals/Create"; import InputWithCounter from "../../../../components/controls/InputWithCounter"; import TextArea from "../../../../components/controls/TextArea"; import AddCustomField from "../../../../components/controls/AddCustomField"; import { CustomMethodCardWizardFieldBodiesView } from "./CustomMethodCardWizardFieldBodies.view"; import { CustomMethodCardWizardBlocksListView } from "./CustomMethodCardWizardBlocksList.view"; import type { CustomMethodCardWizardViewProps } from "./CustomMethodCardWizard.types"; function CustomMethodCardWizardViewComponent({ isOpen, onDismiss, wizardStep, title, description, policyTitle, policyDescription, addFieldExpanded, copy, maxChars, onPolicyTitleChange, onPolicyDescriptionChange, onPressAddCustomField, onSelectFieldType, fieldTypeModal, fieldBodiesCopy, fieldBodiesProps, nextDisabled, nextLabel, showBackButton, onBack, onNext, stepper, draftFieldBlocks, onDraftFieldBlocksReorder, kebabMoreOptionsAriaLabel, kebabMenuAriaLabel, kebabMenuItems, }: CustomMethodCardWizardViewProps) { return ( {fieldTypeModal ? ( ) : null} {!fieldTypeModal && wizardStep === 1 ? ( ) : null} {!fieldTypeModal && wizardStep === 2 ? (