diff --git a/web/.env.example b/web/.env.example index a99d070..cb37b0e 100644 --- a/web/.env.example +++ b/web/.env.example @@ -1,2 +1,3 @@ NEXT_PUBLIC_API_BASE_URL=https://api.textbee.dev/api/v1 -NEXT_PUBLIC_GOOGLE_CLIENT_ID= \ No newline at end of file +NEXT_PUBLIC_GOOGLE_CLIENT_ID= +NEXT_PUBLIC_TAWKTO_EMBED_URL= \ No newline at end of file diff --git a/web/components/livechat/LiveChat.tsx b/web/components/livechat/LiveChat.tsx new file mode 100644 index 0000000..c1305c7 --- /dev/null +++ b/web/components/livechat/LiveChat.tsx @@ -0,0 +1,30 @@ +import Script from 'next/script' +import React from 'react' + +export default function LiveChat() { + if (!process.env.NEXT_PUBLIC_TAWKTO_EMBED_URL) { + return null + } + + return ( + <> +