diff options
author | Vitaly Takmazov | 2018-06-21 14:59:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | bc2e876c592d5b3c117108baf5a5a58905510eae (patch) | |
tree | 29cf37494d6bd3f79cd7819ca58f97875142b923 /vnext/src/components/PM.js | |
parent | 586d67c8e43970cc8c6e936f9eda48df5128efa8 (diff) |
Add PM components
Diffstat (limited to 'vnext/src/components/PM.js')
-rw-r--r-- | vnext/src/components/PM.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vnext/src/components/PM.js b/vnext/src/components/PM.js new file mode 100644 index 00000000..44b81129 --- /dev/null +++ b/vnext/src/components/PM.js @@ -0,0 +1,22 @@ +import React from 'react'; + +import Avatar from './Avatar'; +import { format } from '../utils/embed'; + +export default function PM(props) { + const {chat} = props; + return ( + <li style={chatItemStyle}> + <Avatar user={chat.user} /> + <p dangerouslySetInnerHTML={{ __html: format(chat.body) }} /> + </li> + ); +} + +const chatItemStyle = { + padding: '5px 13px', + fontSize: '14px', + listStyle: 'none', + margin: '10px 0', + boxShadow: '0 0 3px rgba(0,0,0, 0.16)' +}
\ No newline at end of file |