🚀 Init preview and typebot cotext in editor
This commit is contained in:
7
packages/bot-engine/src/services/utils.ts
Normal file
7
packages/bot-engine/src/services/utils.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { Step, TextStep, StepType, TextInputStep } from '../models'
|
||||
|
||||
export const isTextStep = (step: Step): step is TextStep =>
|
||||
step.type === StepType.TEXT
|
||||
|
||||
export const isTextInputStep = (step: Step): step is TextInputStep =>
|
||||
step.type === StepType.TEXT_INPUT
|
Reference in New Issue
Block a user