import { Text } from '@chakra-ui/react' import { Step, StartStep, BubbleStepType, InputStepType, LogicStepType, IntegrationStepType, } from 'models' import { isInputStep } from 'utils' import { ButtonNodesList } from '../../ButtonNode' import { ConditionContent, SetVariableContent, TextBubbleContent, VideoBubbleContent, WebhookContent, WithVariableContent, } from './contents' import { ConfigureContent } from './contents/ConfigureContent' import { ImageBubbleContent } from './contents/ImageBubbleContent' import { PlaceholderContent } from './contents/PlaceholderContent' type Props = { step: Step | StartStep isConnectable?: boolean } export const StepNodeContent = ({ step }: Props) => { if (isInputStep(step) && step.options.variableId) { return } switch (step.type) { case BubbleStepType.TEXT: { return } case BubbleStepType.IMAGE: { return } case BubbleStepType.VIDEO: { return } case InputStepType.TEXT: 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 IntegrationStepType.GOOGLE_SHEETS: { return ( ) } case IntegrationStepType.GOOGLE_ANALYTICS: { return ( ) } case IntegrationStepType.WEBHOOK: { return } case 'start': { return Start } default: { return No input } } }