2
0

feat(inputs): Add buttons input

This commit is contained in:
Baptiste Arnaud
2022-01-12 09:10:59 +01:00
parent b20bcb1408
commit c02c61cd8b
47 changed files with 1109 additions and 243 deletions

View File

@ -6,6 +6,7 @@ import {
Typebot,
Table,
Step,
ChoiceItem,
} from 'models'
export const parseTestTypebot = ({
@ -14,12 +15,14 @@ export const parseTestTypebot = ({
name,
blocks,
steps,
choiceItems,
}: {
id: string
ownerId: string
name: string
blocks: Table<Block>
steps: Table<Step>
choiceItems?: Table<ChoiceItem>
}): Typebot => {
const theme: Theme = {
general: {
@ -67,6 +70,7 @@ export const parseTestTypebot = ({
},
allIds: ['step0', ...steps.allIds],
},
choiceItems: choiceItems ?? { byId: {}, allIds: [] },
publicId: null,
publishedTypebotId: null,
updatedAt: new Date(),