{props.title ? {props.title}
: null}
{props.children}
{actions.length
?
: null
}
);
};
Dialog.propTypes = {
actions: PropTypes.array,
active: PropTypes.bool,
children: PropTypes.node,
className: PropTypes.string,
onEscKeyDown: PropTypes.func,
onOverlayClick: PropTypes.func,
onOverlayMouseDown: PropTypes.func,
onOverlayMouseMove: PropTypes.func,
onOverlayMouseUp: PropTypes.func,
theme: PropTypes.shape({
active: PropTypes.string,
body: PropTypes.string,
button: PropTypes.string,
dialog: PropTypes.string,
navigation: PropTypes.string,
title: PropTypes.string
}),
title: PropTypes.string,
type: PropTypes.string
};
Dialog.defaultProps = {
actions: [],
active: false,
type: 'normal'
};
return ActivableRenderer()(Dialog);
};
const Dialog = factory(InjectOverlay, InjectButton);
export default themr(DIALOG)(Dialog);
export { Dialog };
export { factory as dialogFactory };