import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer'; export interface NotificationDrawerListItemBodyProps extends React.HTMLProps { /** Content rendered inside the list item body */ children?: React.ReactNode; /** Additional classes added to the list item body */ className?: string; /** List item timestamp */ timestamp?: React.ReactNode; } export const NotificationDrawerListItemBody: React.FunctionComponent = ({ children, className = '', timestamp, ...props }: NotificationDrawerListItemBodyProps) => (
{children}
{timestamp &&
{timestamp}
} ); NotificationDrawerListItemBody.displayName = 'NotificationDrawerListItemBody';