import React from 'react'; import { AlertVariant, Button } from '@patternfly/react-core'; import { storiesOf } from '@storybook/react'; import { AlertPanel } from '../src/components/alert/AlertPanel'; import { withAlerts, useAlerts } from '../src/components/alert/Alerts'; storiesOf('Alert Panel', module) .add('api', () => { }} />) .add('add alert', () => { const Comp = () => { const [alerts, add, hide] = useAlerts(); return ( <> ); } const WrapperComponent = withAlerts(Comp); return ( ); });