Add audio clips option on text input block

Closes #157
This commit is contained in:
Baptiste Arnaud
2024-08-20 14:35:20 +02:00
parent 984c2bf387
commit 135251d3f7
55 changed files with 1535 additions and 366 deletions

View File

@@ -0,0 +1,3 @@
import { createSignal } from 'solid-js'
export const [botContainer, setBotContainer] = createSignal<HTMLDivElement>()

View File

@@ -0,0 +1,6 @@
import { InputSubmitContent } from '@/types'
export const getAnswerContent = (answer: InputSubmitContent): string => {
if (answer.type === 'text') return answer.label ?? answer.value
return answer.url
}