@@ -20,6 +20,7 @@ import {
20
20
setPhoneNumberInLocalStorage ,
21
21
} from '../helpers/phoneNumberFromLocalStorage'
22
22
import { useEditor } from '@/features/editor/providers/EditorProvider'
23
+ import { BuoyIcon , ExternalLinkIcon } from '@/components/icons'
23
24
24
25
export const WhatsAppPreviewInstructions = ( props : StackProps ) => {
25
26
const { typebot, save } = useTypebot ( )
@@ -70,10 +71,22 @@ export const WhatsAppPreviewInstructions = (props: StackProps) => {
70
71
onSubmit = { sendWhatsAppPreviewStartMessage }
71
72
{ ...props }
72
73
>
74
+ < HStack justifyContent = "flex-end" >
75
+ < Text fontSize = "sm" > Need help?</ Text >
76
+ < Button
77
+ as = { Link }
78
+ href = "https://docs.typebot.io/embed/whatsapp"
79
+ leftIcon = { < BuoyIcon /> }
80
+ size = "sm"
81
+ >
82
+ Check the docs
83
+ </ Button >
84
+ </ HStack >
73
85
< Alert status = "warning" >
74
86
< AlertIcon />
75
- The WhatsApp integration is still experimental.
76
- < br /> I appreciate your bug reports 🧡
87
+ The WhatsApp integration is still in beta test.
88
+ < br />
89
+ Your bug reports are greatly appreciate 🧡
77
90
</ Alert >
78
91
< TextInput
79
92
label = "Your phone number"
@@ -89,12 +102,22 @@ export const WhatsAppPreviewInstructions = (props: StackProps) => {
89
102
isDisabled = { isEmpty ( phoneNumber ) || isMessageSent }
90
103
isLoading = { isSendingMessage }
91
104
type = "submit"
105
+ colorScheme = "blue"
92
106
>
93
107
{ hasMessageBeenSent ? 'Restart' : 'Start' } the chat
94
108
</ Button >
95
109
) }
96
110
< SlideFade offsetY = "20px" in = { isMessageSent } unmountOnExit >
97
111
< Stack >
112
+ < Button
113
+ as = { Link }
114
+ href = { `https://web.whatsapp.com/` }
115
+ isExternal
116
+ colorScheme = "blue"
117
+ rightIcon = { < ExternalLinkIcon /> }
118
+ >
119
+ Open WhatsApp Web
120
+ </ Button >
98
121
< Alert status = "success" w = "100%" >
99
122
< HStack >
100
123
< AlertIcon />
@@ -106,15 +129,6 @@ export const WhatsAppPreviewInstructions = (props: StackProps) => {
106
129
</ Stack >
107
130
</ HStack >
108
131
</ Alert >
109
- < Button
110
- as = { Link }
111
- href = { `https://web.whatsapp.com/` }
112
- isExternal
113
- size = "sm"
114
- colorScheme = "blue"
115
- >
116
- Open WhatsApp Web
117
- </ Button >
118
132
</ Stack >
119
133
</ SlideFade >
120
134
</ Stack >
0 commit comments