import { Text } from '@chakra-ui/react' import { Step, StartStep, BubbleStepType, InputStepType, LogicStepType, IntegrationStepType, StepIndices, } from 'models' import { isChoiceInput, isInputStep } from 'utils' import { ItemNodesList } from '../../ItemNode' import { EmbedBubbleContent, SetVariableContent, TextBubbleContent, VideoBubbleContent, WebhookContent, WithVariableContent, } from './contents' import { ConfigureContent } from './contents/ConfigureContent' import { ImageBubbleContent } from './contents/ImageBubbleContent' import { PlaceholderContent } from './contents/PlaceholderContent' import { SendEmailContent } from './contents/SendEmailContent' import { TypebotLinkContent } from './contents/TypebotLinkContent' import { ZapierContent } from './contents/ZapierContent' type Props = { step: Step | StartStep indices: StepIndices } export const StepNodeContent = ({ step, indices }: Props) => { if (isInputStep(step) && !isChoiceInput(step) && step.options.variableId) { return } switch (step.type) { case BubbleStepType.TEXT: { return } case BubbleStepType.IMAGE: { return } case BubbleStepType.VIDEO: { return } case BubbleStepType.EMBED: { return } case InputStepType.TEXT: { return ( ) } case InputStepType.NUMBER: case InputStepType.EMAIL: case InputStepType.URL: case InputStepType.PHONE: { return ( ) } case InputStepType.DATE: { return Pick a date... } case InputStepType.CHOICE: { return } case LogicStepType.SET_VARIABLE: { return } case LogicStepType.CONDITION: { return } case LogicStepType.REDIRECT: { return ( ) } case LogicStepType.CODE: { return ( ) } case LogicStepType.TYPEBOT_LINK: return case IntegrationStepType.GOOGLE_SHEETS: { return ( ) } case IntegrationStepType.GOOGLE_ANALYTICS: { return ( ) } case IntegrationStepType.WEBHOOK: { return } case IntegrationStepType.ZAPIER: { return } case IntegrationStepType.EMAIL: { return } case 'start': { return Start } default: { return No input } } }