import React from 'react'; import { Button, EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateHeader, EmptyStateVariant, NotificationDrawer, NotificationDrawerBody, NotificationDrawerHeader, NotificationDrawerGroup, NotificationDrawerGroupList, NotificationDrawerList, NotificationDrawerListItem, NotificationDrawerListItemBody, NotificationDrawerListItemHeader, EmptyStateActions, EmptyStateIcon } from '@breakaway/preact-core'; import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; export const NotificationDrawerLightweight: React.FunctionComponent = () => { const [firstGroupExpanded, setFirstGroupExpanded] = React.useState(false); const [secondGroupExpanded, setSecondGroupExpanded] = React.useState(true); const [thirdGroupExpanded, setThirdGroupExpanded] = React.useState(false); const toggleFirstDrawer = (_event: any, value: boolean) => { setFirstGroupExpanded(value); setSecondGroupExpanded(false); setThirdGroupExpanded(false); }; const toggleSecondDrawer = (_event: any, value: boolean) => { setSecondGroupExpanded(value); setFirstGroupExpanded(false); setThirdGroupExpanded(false); }; const toggleThirdDrawer = (_event: any, value: boolean) => { setThirdGroupExpanded(value); setSecondGroupExpanded(false); setFirstGroupExpanded(false); }; const onDrawerClose = (_event: KeyboardEvent | React.MouseEvent) => { // do something cool in a callback }; return ( onDrawerClose(event)} /> This is an info notification description. This is a danger notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines. This is a warning notification description. This is a success notification description. This is an info notification description. This is a danger notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines. This is a warning notification description. This is a success notification description. } /> There are currently no critical alerts firing. There may be firing alerts of other severities or silenced critical alerts however. ); };