webapp/src/components/Inbox/DialogCard.tsx
ilya-bkv cc54f055f3 wip
2022-11-14 16:07:49 +03:00

35 lines
1009 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import './DialogCard.module.scss'
import styles from './DialogCard.module.scss'
import DialogAvatar from './DialogAvatar'
import type { Author } from '../../graphql/types.gen'
type Props = {
online?: boolean
message?: string
counter?: number
} & Author
const DialogCard = (props: Props) => {
return (
<div class={styles.DialogCard} onClick={handleGoToChat}>
<div class={styles.avatar}>
<DialogAvatar name={props.name} url={props.userpic} online={props.online} />
</div>
<div class={styles.row}>
<div class={styles.name}>{props.name}</div>
<div class={styles.message}>
Указать предпочтительные языки для результатов поиска можно в разделе
</div>
</div>
<div class={styles.activity}>
<div class={styles.time}>22:22</div>
<div class={styles.counter}>
<span>12</span>
</div>
</div>
</div>
)
}
export default DialogCard