livevegas-ui-kit 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BalanceAndBet/index.d.ts +1 -2
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Chat/index.d.ts +1 -2
- package/dist/components/Chip/index.d.ts +1 -2
- package/dist/components/MobileMenu/index.d.ts +2 -2
- package/dist/components/index.d.ts +7 -1
- package/dist/livevegas-ui-kit.es.js +165 -165
- package/dist/livevegas-ui-kit.es.js.map +1 -1
- package/dist/livevegas-ui-kit.umd.js +165 -165
- package/dist/livevegas-ui-kit.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface IButton {
|
|
1
|
+
export interface IButton {
|
|
2
2
|
icon?: React.ReactNode;
|
|
3
3
|
buttonInfo?: string;
|
|
4
4
|
onClick?: () => void;
|
|
@@ -11,4 +11,3 @@ interface IButton {
|
|
|
11
11
|
isActiveBlue?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const Button: ({ icon, onClick, buttonInfo, isActive, isValueButton, width, height, text, textStyle, isActiveBlue, }: IButton) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IMessage } from '../../api/types';
|
|
2
|
-
interface IChat {
|
|
2
|
+
export interface IChat {
|
|
3
3
|
onSendMessage: (message: string) => void;
|
|
4
4
|
messages: IMessage[];
|
|
5
5
|
isMobile?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const Chat: ({ onSendMessage, messages, isMobile }: IChat) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface IChip {
|
|
1
|
+
export interface IChip {
|
|
2
2
|
chipAmounts: number[];
|
|
3
3
|
amount: number;
|
|
4
4
|
width?: number;
|
|
@@ -6,4 +6,3 @@ interface IChip {
|
|
|
6
6
|
onClick?: (amount: number) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const Chip: ({ chipAmounts, amount, width, height, onClick, }: IChip) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -2,7 +2,7 @@ import { HubConnection } from '@microsoft/signalr';
|
|
|
2
2
|
import { IUrlParam } from '../../utils/helpers';
|
|
3
3
|
import { IMessage } from '../../api/types';
|
|
4
4
|
import { IHistoryData } from '../History/helpers';
|
|
5
|
-
export interface
|
|
5
|
+
export interface IMobileMenu {
|
|
6
6
|
name: string;
|
|
7
7
|
round: string;
|
|
8
8
|
limit: string;
|
|
@@ -18,4 +18,4 @@ export interface IToLobby {
|
|
|
18
18
|
isLandscape: boolean;
|
|
19
19
|
historyData: IHistoryData;
|
|
20
20
|
}
|
|
21
|
-
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, }:
|
|
21
|
+
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, }: IMobileMenu) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export { BalanceAndBet } from './BalanceAndBet';
|
|
2
2
|
export { Button } from './Button';
|
|
3
|
-
export { Chat } from './Chat';
|
|
4
3
|
export { Chip } from './Chip';
|
|
4
|
+
export { Chat } from './Chat';
|
|
5
5
|
export { MobileMenu } from './MobileMenu';
|
|
6
6
|
export { TopIcons } from './TopIcons';
|
|
7
|
+
export type { IBalanceAndBet } from './BalanceAndBet';
|
|
8
|
+
export type { IButton } from './Button';
|
|
9
|
+
export type { IChat } from './Chat';
|
|
10
|
+
export type { IChip } from './Chip';
|
|
11
|
+
export type { IMobileMenu } from './MobileMenu';
|
|
12
|
+
export type { IIcon } from './TopIcons';
|
|
@@ -1730,171 +1730,6 @@ const Button$1 = ({
|
|
|
1730
1730
|
}
|
|
1731
1731
|
) });
|
|
1732
1732
|
};
|
|
1733
|
-
const ChatContener = dt.div`
|
|
1734
|
-
display: flex;
|
|
1735
|
-
width: ${({ isMobile }) => isMobile ? "100%" : "285px"};
|
|
1736
|
-
height: ${({ isMobile }) => isMobile ? "100%" : "fit-content"};
|
|
1737
|
-
margin-top: 10px;
|
|
1738
|
-
flex-direction: ${({ isMobile }) => isMobile ? "column-reverse" : "column"};
|
|
1739
|
-
justify-content: end;
|
|
1740
|
-
`;
|
|
1741
|
-
const SendMessageContener$1 = dt.div`
|
|
1742
|
-
position: relative;
|
|
1743
|
-
height: 40px;
|
|
1744
|
-
${({ isMobile }) => isMobile && "bottom: 28px"};
|
|
1745
|
-
max-width: ${({ isMobile }) => isMobile ? "90%" : "fit-content"};
|
|
1746
|
-
left: ${({ isMobile }) => isMobile ? "5%" : "43px"};
|
|
1747
|
-
.send-massage {
|
|
1748
|
-
cursor: pointer;
|
|
1749
|
-
position: absolute;
|
|
1750
|
-
right: 10px;
|
|
1751
|
-
top: 10px;
|
|
1752
|
-
}
|
|
1753
|
-
`;
|
|
1754
|
-
const InputMessage$1 = dt.input`
|
|
1755
|
-
padding-left: 8px;
|
|
1756
|
-
padding-right: 12px;
|
|
1757
|
-
max-width: ${({ isMobile }) => isMobile ? "100%" : "220px"};
|
|
1758
|
-
min-width: ${({ isMobile }) => isMobile ? "90%" : "220px"};
|
|
1759
|
-
height: 36px;
|
|
1760
|
-
border-radius: 8px;
|
|
1761
|
-
background: #111111cc;
|
|
1762
|
-
border: 1px solid;
|
|
1763
|
-
backdrop-filter: blur(100px);
|
|
1764
|
-
color: #ffffff;
|
|
1765
|
-
font-family: Inter;
|
|
1766
|
-
font-weight: 500;
|
|
1767
|
-
font-size: 14px;
|
|
1768
|
-
line-height: 16px;
|
|
1769
|
-
border-color: transparent;
|
|
1770
|
-
outline: none;
|
|
1771
|
-
&:focus {
|
|
1772
|
-
border-color: #ffffff;
|
|
1773
|
-
outline: none;
|
|
1774
|
-
}
|
|
1775
|
-
`;
|
|
1776
|
-
const GetMessageContener = dt.div`
|
|
1777
|
-
display: flex;
|
|
1778
|
-
flex-direction: column;
|
|
1779
|
-
width: 100%;
|
|
1780
|
-
${({ isMobile }) => isMobile ? `height: calc(100% - 40px)` : ""};
|
|
1781
|
-
|
|
1782
|
-
.message-item {
|
|
1783
|
-
width: 100%;
|
|
1784
|
-
display: flex;
|
|
1785
|
-
flex-direction: column;
|
|
1786
|
-
justify-content: end;
|
|
1787
|
-
align-items: end;
|
|
1788
|
-
animation-duration: 8s;
|
|
1789
|
-
animation-name: slidein;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
.sender-nick {
|
|
1793
|
-
display: flex;
|
|
1794
|
-
height: 16px;
|
|
1795
|
-
gap: 6px;
|
|
1796
|
-
align-items: center;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
.nickname {
|
|
1800
|
-
font-family: Inter;
|
|
1801
|
-
font-weight: 700;
|
|
1802
|
-
font-size: 12px;
|
|
1803
|
-
line-height: 10px;
|
|
1804
|
-
line-height: 100%;
|
|
1805
|
-
text-align: right;
|
|
1806
|
-
color: #c5f5fa;
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
.time {
|
|
1810
|
-
font-family: Inter;
|
|
1811
|
-
font-weight: 400;
|
|
1812
|
-
font-size: 10px;
|
|
1813
|
-
text-align: right;
|
|
1814
|
-
color: #c5f5fa;
|
|
1815
|
-
line-height: 100%;
|
|
1816
|
-
letter-spacing: 0px;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
.masssage {
|
|
1820
|
-
font-family: Inter;
|
|
1821
|
-
font-weight: 500;
|
|
1822
|
-
font-size: 12px;
|
|
1823
|
-
line-height: 16px;
|
|
1824
|
-
letter-spacing: 0%;
|
|
1825
|
-
text-align: right;
|
|
1826
|
-
color: #ffffff;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
@keyframes slidein {
|
|
1830
|
-
from {
|
|
1831
|
-
opacity: 1;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
to {
|
|
1835
|
-
opacity: 0;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
`;
|
|
1839
|
-
const InputCursor = ({ onClick }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1840
|
-
"svg",
|
|
1841
|
-
{
|
|
1842
|
-
onClick: () => onClick,
|
|
1843
|
-
width: "20",
|
|
1844
|
-
height: "20",
|
|
1845
|
-
viewBox: "0 0 20 20",
|
|
1846
|
-
fill: "none",
|
|
1847
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1848
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("g", { opacity: "0.3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1849
|
-
"path",
|
|
1850
|
-
{
|
|
1851
|
-
d: "M10.6193 10.1497L4.89501 11.1043C4.8292 11.1153 4.76744 11.1434 4.71595 11.1858C4.66445 11.2282 4.62503 11.2835 4.60165 11.346L2.62793 16.6333C2.43945 17.1197 2.94789 17.5833 3.41453 17.35L17.0945 10.51C17.1893 10.4626 17.269 10.3899 17.3247 10.2998C17.3804 10.2097 17.4099 10.1059 17.4099 10C17.4099 9.89409 17.3804 9.79027 17.3247 9.7002C17.269 9.61012 17.1893 9.53735 17.0945 9.49004L3.41453 2.65004C2.94789 2.41672 2.43945 2.88108 2.62793 3.36672L4.60241 8.65404C4.62568 8.71667 4.66505 8.77206 4.71656 8.81463C4.76806 8.85719 4.82988 8.88542 4.89577 8.89648L10.6201 9.85028C10.6553 9.85645 10.6872 9.87484 10.7102 9.90223C10.7333 9.92961 10.7459 9.96423 10.7459 10C10.7459 10.0358 10.7333 10.0704 10.7102 10.0978C10.6872 10.1251 10.6553 10.1435 10.6201 10.1497H10.6193Z",
|
|
1852
|
-
fill: "white",
|
|
1853
|
-
fillOpacity: "0.6"
|
|
1854
|
-
}
|
|
1855
|
-
) })
|
|
1856
|
-
}
|
|
1857
|
-
);
|
|
1858
|
-
const Chat = ({ onSendMessage, messages, isMobile }) => {
|
|
1859
|
-
const [message, setMessage] = useState("");
|
|
1860
|
-
const sendMessages = (event) => {
|
|
1861
|
-
const messageText = event.target.value;
|
|
1862
|
-
if (messageText.trim().length || message.length === 1) {
|
|
1863
|
-
setMessage(messageText);
|
|
1864
|
-
}
|
|
1865
|
-
};
|
|
1866
|
-
const sendMessage = () => {
|
|
1867
|
-
onSendMessage(message);
|
|
1868
|
-
setMessage("");
|
|
1869
|
-
};
|
|
1870
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ChatContener, { isMobile: !!isMobile, children: [
|
|
1871
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(SendMessageContener$1, { isMobile: !!isMobile, children: [
|
|
1872
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1873
|
-
InputMessage$1,
|
|
1874
|
-
{
|
|
1875
|
-
isMobile: !!isMobile,
|
|
1876
|
-
value: message,
|
|
1877
|
-
onChange: sendMessages,
|
|
1878
|
-
placeholder: "Click to chat",
|
|
1879
|
-
type: "text",
|
|
1880
|
-
onKeyPress: (event) => {
|
|
1881
|
-
if (event.key === "Enter") {
|
|
1882
|
-
sendMessage();
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
),
|
|
1887
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "send-massage", children: /* @__PURE__ */ jsxRuntimeExports.jsx(InputCursor, { onClick: sendMessage }) })
|
|
1888
|
-
] }),
|
|
1889
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(GetMessageContener, { isMobile: !!isMobile, children: messages.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "message-item", children: [
|
|
1890
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sender-nick", children: [
|
|
1891
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "nickname", children: item.senderNickname }),
|
|
1892
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "time", children: item.time })
|
|
1893
|
-
] }),
|
|
1894
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "masssage", children: item.message })
|
|
1895
|
-
] }, index2)) })
|
|
1896
|
-
] });
|
|
1897
|
-
};
|
|
1898
1733
|
const getColor = (chipAmounts, amount) => {
|
|
1899
1734
|
const chipIndex = chipAmounts.reduce((index2, chip, i) => {
|
|
1900
1735
|
if (chip === amount) {
|
|
@@ -2775,6 +2610,171 @@ const Chip = ({
|
|
|
2775
2610
|
amount
|
|
2776
2611
|
);
|
|
2777
2612
|
};
|
|
2613
|
+
const ChatContener = dt.div`
|
|
2614
|
+
display: flex;
|
|
2615
|
+
width: ${({ isMobile }) => isMobile ? "100%" : "285px"};
|
|
2616
|
+
height: ${({ isMobile }) => isMobile ? "100%" : "fit-content"};
|
|
2617
|
+
margin-top: 10px;
|
|
2618
|
+
flex-direction: ${({ isMobile }) => isMobile ? "column-reverse" : "column"};
|
|
2619
|
+
justify-content: end;
|
|
2620
|
+
`;
|
|
2621
|
+
const SendMessageContener$1 = dt.div`
|
|
2622
|
+
position: relative;
|
|
2623
|
+
height: 40px;
|
|
2624
|
+
${({ isMobile }) => isMobile && "bottom: 28px"};
|
|
2625
|
+
max-width: ${({ isMobile }) => isMobile ? "90%" : "fit-content"};
|
|
2626
|
+
left: ${({ isMobile }) => isMobile ? "5%" : "43px"};
|
|
2627
|
+
.send-massage {
|
|
2628
|
+
cursor: pointer;
|
|
2629
|
+
position: absolute;
|
|
2630
|
+
right: 10px;
|
|
2631
|
+
top: 10px;
|
|
2632
|
+
}
|
|
2633
|
+
`;
|
|
2634
|
+
const InputMessage$1 = dt.input`
|
|
2635
|
+
padding-left: 8px;
|
|
2636
|
+
padding-right: 12px;
|
|
2637
|
+
max-width: ${({ isMobile }) => isMobile ? "100%" : "220px"};
|
|
2638
|
+
min-width: ${({ isMobile }) => isMobile ? "90%" : "220px"};
|
|
2639
|
+
height: 36px;
|
|
2640
|
+
border-radius: 8px;
|
|
2641
|
+
background: #111111cc;
|
|
2642
|
+
border: 1px solid;
|
|
2643
|
+
backdrop-filter: blur(100px);
|
|
2644
|
+
color: #ffffff;
|
|
2645
|
+
font-family: Inter;
|
|
2646
|
+
font-weight: 500;
|
|
2647
|
+
font-size: 14px;
|
|
2648
|
+
line-height: 16px;
|
|
2649
|
+
border-color: transparent;
|
|
2650
|
+
outline: none;
|
|
2651
|
+
&:focus {
|
|
2652
|
+
border-color: #ffffff;
|
|
2653
|
+
outline: none;
|
|
2654
|
+
}
|
|
2655
|
+
`;
|
|
2656
|
+
const GetMessageContener = dt.div`
|
|
2657
|
+
display: flex;
|
|
2658
|
+
flex-direction: column;
|
|
2659
|
+
width: 100%;
|
|
2660
|
+
${({ isMobile }) => isMobile ? `height: calc(100% - 40px)` : ""};
|
|
2661
|
+
|
|
2662
|
+
.message-item {
|
|
2663
|
+
width: 100%;
|
|
2664
|
+
display: flex;
|
|
2665
|
+
flex-direction: column;
|
|
2666
|
+
justify-content: end;
|
|
2667
|
+
align-items: end;
|
|
2668
|
+
animation-duration: 8s;
|
|
2669
|
+
animation-name: slidein;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
.sender-nick {
|
|
2673
|
+
display: flex;
|
|
2674
|
+
height: 16px;
|
|
2675
|
+
gap: 6px;
|
|
2676
|
+
align-items: center;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.nickname {
|
|
2680
|
+
font-family: Inter;
|
|
2681
|
+
font-weight: 700;
|
|
2682
|
+
font-size: 12px;
|
|
2683
|
+
line-height: 10px;
|
|
2684
|
+
line-height: 100%;
|
|
2685
|
+
text-align: right;
|
|
2686
|
+
color: #c5f5fa;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
.time {
|
|
2690
|
+
font-family: Inter;
|
|
2691
|
+
font-weight: 400;
|
|
2692
|
+
font-size: 10px;
|
|
2693
|
+
text-align: right;
|
|
2694
|
+
color: #c5f5fa;
|
|
2695
|
+
line-height: 100%;
|
|
2696
|
+
letter-spacing: 0px;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
.masssage {
|
|
2700
|
+
font-family: Inter;
|
|
2701
|
+
font-weight: 500;
|
|
2702
|
+
font-size: 12px;
|
|
2703
|
+
line-height: 16px;
|
|
2704
|
+
letter-spacing: 0%;
|
|
2705
|
+
text-align: right;
|
|
2706
|
+
color: #ffffff;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
@keyframes slidein {
|
|
2710
|
+
from {
|
|
2711
|
+
opacity: 1;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
to {
|
|
2715
|
+
opacity: 0;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
`;
|
|
2719
|
+
const InputCursor = ({ onClick }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2720
|
+
"svg",
|
|
2721
|
+
{
|
|
2722
|
+
onClick: () => onClick,
|
|
2723
|
+
width: "20",
|
|
2724
|
+
height: "20",
|
|
2725
|
+
viewBox: "0 0 20 20",
|
|
2726
|
+
fill: "none",
|
|
2727
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2728
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("g", { opacity: "0.3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2729
|
+
"path",
|
|
2730
|
+
{
|
|
2731
|
+
d: "M10.6193 10.1497L4.89501 11.1043C4.8292 11.1153 4.76744 11.1434 4.71595 11.1858C4.66445 11.2282 4.62503 11.2835 4.60165 11.346L2.62793 16.6333C2.43945 17.1197 2.94789 17.5833 3.41453 17.35L17.0945 10.51C17.1893 10.4626 17.269 10.3899 17.3247 10.2998C17.3804 10.2097 17.4099 10.1059 17.4099 10C17.4099 9.89409 17.3804 9.79027 17.3247 9.7002C17.269 9.61012 17.1893 9.53735 17.0945 9.49004L3.41453 2.65004C2.94789 2.41672 2.43945 2.88108 2.62793 3.36672L4.60241 8.65404C4.62568 8.71667 4.66505 8.77206 4.71656 8.81463C4.76806 8.85719 4.82988 8.88542 4.89577 8.89648L10.6201 9.85028C10.6553 9.85645 10.6872 9.87484 10.7102 9.90223C10.7333 9.92961 10.7459 9.96423 10.7459 10C10.7459 10.0358 10.7333 10.0704 10.7102 10.0978C10.6872 10.1251 10.6553 10.1435 10.6201 10.1497H10.6193Z",
|
|
2732
|
+
fill: "white",
|
|
2733
|
+
fillOpacity: "0.6"
|
|
2734
|
+
}
|
|
2735
|
+
) })
|
|
2736
|
+
}
|
|
2737
|
+
);
|
|
2738
|
+
const Chat = ({ onSendMessage, messages, isMobile }) => {
|
|
2739
|
+
const [message, setMessage] = useState("");
|
|
2740
|
+
const sendMessages = (event) => {
|
|
2741
|
+
const messageText = event.target.value;
|
|
2742
|
+
if (messageText.trim().length || message.length === 1) {
|
|
2743
|
+
setMessage(messageText);
|
|
2744
|
+
}
|
|
2745
|
+
};
|
|
2746
|
+
const sendMessage = () => {
|
|
2747
|
+
onSendMessage(message);
|
|
2748
|
+
setMessage("");
|
|
2749
|
+
};
|
|
2750
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ChatContener, { isMobile: !!isMobile, children: [
|
|
2751
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(SendMessageContener$1, { isMobile: !!isMobile, children: [
|
|
2752
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2753
|
+
InputMessage$1,
|
|
2754
|
+
{
|
|
2755
|
+
isMobile: !!isMobile,
|
|
2756
|
+
value: message,
|
|
2757
|
+
onChange: sendMessages,
|
|
2758
|
+
placeholder: "Click to chat",
|
|
2759
|
+
type: "text",
|
|
2760
|
+
onKeyPress: (event) => {
|
|
2761
|
+
if (event.key === "Enter") {
|
|
2762
|
+
sendMessage();
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
),
|
|
2767
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "send-massage", children: /* @__PURE__ */ jsxRuntimeExports.jsx(InputCursor, { onClick: sendMessage }) })
|
|
2768
|
+
] }),
|
|
2769
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(GetMessageContener, { isMobile: !!isMobile, children: messages.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "message-item", children: [
|
|
2770
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sender-nick", children: [
|
|
2771
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "nickname", children: item.senderNickname }),
|
|
2772
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "time", children: item.time })
|
|
2773
|
+
] }),
|
|
2774
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "masssage", children: item.message })
|
|
2775
|
+
] }, index2)) })
|
|
2776
|
+
] });
|
|
2777
|
+
};
|
|
2778
2778
|
var SendEventNames = /* @__PURE__ */ ((SendEventNames2) => {
|
|
2779
2779
|
SendEventNames2["Launch"] = "launch";
|
|
2780
2780
|
SendEventNames2["GameChange"] = "GameChange";
|