Files
Paradise/tgui/packages/tgui-panel/Notifications.js
Mikhail Dzianishchyts c129ac3076 Edit max line length (#25071)
* 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
2024-06-29 18:17:26 +00:00

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;