2023-01-25 11:27:47 +01:00
|
|
|
import { z } from 'zod'
|
|
|
|
import { buttonItemSchema } from '../blocks/inputs/choice'
|
|
|
|
import { conditionItemSchema } from '../blocks/logic/condition'
|
2023-04-17 16:47:17 +02:00
|
|
|
import { aItemSchema, bItemSchema } from '../blocks'
|
2023-01-25 11:27:47 +01:00
|
|
|
|
2023-04-17 16:47:17 +02:00
|
|
|
const itemSchema = buttonItemSchema
|
|
|
|
.or(conditionItemSchema)
|
|
|
|
.or(aItemSchema)
|
|
|
|
.or(bItemSchema)
|
2023-01-25 11:27:47 +01:00
|
|
|
|
|
|
|
export type Item = z.infer<typeof itemSchema>
|