import { IkasCustomerAttributeType } from "../customer/attribute"; export type IkasForm = { isSubmitted: boolean; isSubmitting: boolean; isSuccess?: boolean; isFailure?: boolean; responseMessage?: string; }; export type IkasFormItem = { label?: string; placeholder?: string; value: string; } & IkasFormItemValidation; export type IkasFormItemBoolean = { label?: string; value: boolean; } & IkasFormItemValidation; export type IkasFormAttributeItem = { id: string; label?: string; placeholder?: string; type: IkasCustomerAttributeType; options: IkasFormItemOption[] | undefined; isChecked?: boolean; value?: string; selectedIdList?: string[]; } & IkasFormItemValidation; export type IkasFormItemValidation = { isRequired?: boolean; hasError: boolean; message?: string; }; export type IkasFormAsyncItem = { isLoading?: boolean; } & IkasFormItem; export type IkasFormFreeText = { isFreeText?: boolean; } & IkasFormAsyncItem; export type IkasFormItemOption = { value: string; label: string; };