mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
notification menu
This commit is contained in:
parent
6c1f8967e8
commit
9b0c3dd1fb
20 changed files with 371 additions and 39 deletions
26
src/components/notifications/NotificationMessage/index.tsx
Normal file
26
src/components/notifications/NotificationMessage/index.tsx
Normal file
|
@ -0,0 +1,26 @@
|
|||
import React, { FC } from 'react';
|
||||
import styles from '~/components/notifications/NotificationBubble/styles.scss';
|
||||
import { Icon } from '~/components/input/Icon';
|
||||
import { IMessageNotification } from '~/redux/types';
|
||||
|
||||
interface IProps {
|
||||
notification: IMessageNotification;
|
||||
}
|
||||
|
||||
const NotificationMessage: FC<IProps> = ({
|
||||
notification: {
|
||||
content: { text, from },
|
||||
},
|
||||
}) => {
|
||||
return (
|
||||
<div className={styles.item}>
|
||||
<div className={styles.item_head}>
|
||||
<Icon icon="message" />
|
||||
<div className={styles.item_title}>Сообщение от ~{from.username}:</div>
|
||||
</div>
|
||||
<div className={styles.item_text}>{text}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { NotificationMessage };
|
Loading…
Add table
Add a link
Reference in a new issue