react-drift
react-drift copied to clipboard
How to set config via react component?
<script>
drift.config({
locale: 'en-US',
messages: {
welcomeMessage: 'Hey there!',
awayMessage: "Hey, we're not here right now, but leave a message.",
emailCaptureMessage: "Leave your email so we can get back to you.",
thankYouMessage: "Thanks we'll follow up soon."
},
enableWelcomeMessage: false,
enableCampaigns: false,
})
</script>
https://devdocs.drift.com/docs/widget-configuration The docs on website only specify how to do it via vanilla js. How to specify the above configuration parameters using react component? (I looked at the props, it doesn't seem to accept any of these..)