React live-casino-chat-games App.
Below you will find some information on how to perform common tasks.
Table of Contents
Installation
npm i -S @live-casino-games/chat
Usage
import ChatGames from "@live-casino-games/chat";
Props
import ChatGames from "@live-casino-games/chat";
export default () => (
<ChatGames
variables={{
lang: "en",
token: "A9-06-6F-39-48-E5-DA-F1-20-09-86-C0-2A-8C-17-5E",
chatURL: "https://chat.xpgtesting.com/",
isFullScreen: true,
removeFocus: false,
mobile: true,
dealerName: "Dealer",
takeMsg: 40,
isBanned: false,
isChatEnable: false
}}
onCloseTab={() => {}}
onFocusChat={(focus: boolean) => {}}
onEnableChat={(enable: boolean) => {}}
/>
);
Theme configuration
const theme = {
dealerTopBar: {},
container: {},
form: {
active: {},
disable: {},
sendBtn: {},
emojiBtn: {}
},
list: {
msg: {
currentUser: {},
otherUsers: {},
dealer: {}
}
},
btnEnableChat: {},
notifMsg: {},
systemMsg: {}
};