2023-01-09 14:51:36 +01:00
|
|
|
import { Popup } from '../Popup'
|
|
|
|
import { open, toggle } from '@typebot.io/js'
|
|
|
|
|
|
|
|
export const Default = () => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<button onClick={open}>Open modal</button>
|
|
|
|
<button onClick={toggle}>Toggle modal</button>
|
|
|
|
<Popup
|
2023-01-16 12:13:21 +01:00
|
|
|
typebot="clctayswj000l3b6y2vkh8kwg"
|
2023-01-09 14:51:36 +01:00
|
|
|
apiHost="http://localhost:3001"
|
|
|
|
autoShowDelay={3000}
|
2023-01-16 12:13:21 +01:00
|
|
|
isPreview
|
2023-01-09 14:51:36 +01:00
|
|
|
/>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|