import * as React from 'react' ; import omit from 'lodash/omit' ; import { AlertModal } from '@opentrons/components' ; import { BottomButtonBar } from './BottomButtonBar' ; import styles from './styles.css' ; type Props = React . ComponentProps < typeof AlertModal > ; export function ScrollableAlertModal ( props ) { return ( < AlertModal { ... omit ( props , 'buttons' , 'children' ) } className = { styles . scrollable_modal } contentsClassName = { styles . scrollable_modal_contents } alertOverlay > < div className = { styles . scrollable_modal_scroll } > { props . children } < /div> { props . buttons && < BottomButtonBar buttons = { props . buttons } />} < /AlertModal>); }