mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 17:13:46 +01:00
c129ac3076
* Edit max line length * oh god * ts also * rebuild tgui * Format again after conflicts resolving * Me rebuild tgui * this is minified * this is removed * rebuild tgui
27 lines
638 B
JavaScript
27 lines
638 B
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
import { Flex } from 'tgui/components';
|
|
|
|
export const Notifications = (props) => {
|
|
const { children } = props;
|
|
return <div className="Notifications">{children}</div>;
|
|
};
|
|
|
|
const NotificationsItem = (props) => {
|
|
const { rightSlot, children } = props;
|
|
return (
|
|
<Flex align="center" className="Notification">
|
|
<Flex.Item className="Notification__content" grow={1}>
|
|
{children}
|
|
</Flex.Item>
|
|
{rightSlot && <Flex.Item className="Notification__rightSlot">{rightSlot}</Flex.Item>}
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
Notifications.Item = NotificationsItem;
|