2
0
Files
bot/apps/builder/src/features/blocks/bubbles/audio/components/AudioBubbleNode.tsx

15 lines
363 B
TypeScript
Raw Normal View History

import { Text } from '@chakra-ui/react'
import { AudioBubbleContent } from '@typebot.io/schemas'
import { isDefined } from '@typebot.io/lib'
type Props = {
url: AudioBubbleContent['url']
}
export const AudioBubbleNode = ({ url }: Props) =>
isDefined(url) ? (
<audio src={url} controls />
) : (
<Text color={'gray.500'}>Click to edit...</Text>
)