import { FunctionComponent } from 'react'; import { Button } from '@patternfly/react-core'; import ErrorState from '@patternfly/react-component-groups/dist/dynamic/ErrorState'; export const BasicExample: FunctionComponent = () => ( console.log('Custom button clicked')}> Custom action } /> );