Debian Codegraph @

node/@patternfly/react-core/src/components/NotificationDrawer/NotificationDrawerBody.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
2 import { css } from '@patternfly/react-styles';
3
4 export interface NotificationDrawerBodyProps extends React.HTMLProps<HTMLDivElement> {
5 /** Content rendered inside the body of the notification drawer */
6 children?: React.ReactNode;
7 /** Additional classes added to the notification drawer body */
8 className?: string;
9 }
10
11 export const NotificationDrawerBody: React.FunctionComponent<NotificationDrawerBodyProps> = ({
12 children,
13 className = '',
14 ...props
15 }: NotificationDrawerBodyProps) => (
16 <div {...props} className={css(styles.notificationDrawerBody, className)}>
17 {children}
18 </div>
19 );
20 NotificationDrawerBody.displayName = 'NotificationDrawerBody';