webapp/src/components/Inbox/Message.tsx

18 lines
326 B
TypeScript
Raw Normal View History

2022-11-16 12:25:37 +00:00
import { clsx } from 'clsx'
import styles from './Message.module.scss'
type Props = {
body: string
isOwn: boolean
}
const Message = (props: Props) => {
return (
<div class={clsx(styles.Message, props.isOwn && styles.own)}>
<div class={styles.body}>{props.body}</div>
</div>
)
}
export default Message