File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 SendIcon ,
1313} from "../assets/icons" ;
1414import { SarufiIcon } from "../assets/illustrations" ;
15+ import Media from "./media" ;
1516
1617type ChatType = {
1718 message : string ;
@@ -168,7 +169,7 @@ const Chatbox = ({
168169 } }
169170 >
170171 < div
171- className = "sarufi-message-body sarufi-message-body-w-arrow "
172+ className = "sarufi-message-body"
172173 style = { {
173174 maxWidth : 280 ,
174175 background : "var(--sarufi-received-box-bg)" ,
@@ -201,7 +202,7 @@ const Chatbox = ({
201202 ) ) }
202203 { loading && (
203204 < div
204- className = { `sarufi-message-body sarufi-message-body-w-arrow ` }
205+ className = { `sarufi-message-body` }
205206 style = { {
206207 background : "var(--sarufi-received-box-bg)" ,
207208 padding : "6px 8px 8px 9px" ,
@@ -306,10 +307,10 @@ export default Chatbox;
306307const Chat = ( {
307308 chat,
308309 onSubmit,
309- // mode,
310- // fontFamily,
311- // fontSize,
312- // index,
310+ mode,
311+ fontFamily,
312+ fontSize,
313+ index,
313314 primaryColor,
314315} : {
315316 chat : any ;
@@ -401,6 +402,13 @@ const Chat = ({
401402 </ div >
402403 ) }
403404 < div >
405+ < Media
406+ chat = { chat }
407+ mode = { mode }
408+ fontFamily = { fontFamily }
409+ fontSize = { fontSize }
410+ messageIndex = { index }
411+ />
404412 < div
405413 className = { `sarufi-message-body ${ chat ?. sent ? "sent" : "" } ` }
406414 style = { {
You can’t perform that action at this time.
0 commit comments