mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
42 lines
733 B
JavaScript
42 lines
733 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;
|