{this.props.onSave ? (
) : null}
{this.props.onPrevious ? (
) : null}
{this.props.onNext ? (
) : null}
);
}
private setContainerRef = (value: HTMLDivElement) => {
this.containerRef = value;
};
private onClose = () => {
const { close } = this.props;
if (!close) {
return;
}
close();
};
private onKeyUp = (event: KeyboardEvent) => {
if (event.key !== 'Escape') {
return;
}
this.onClose();
};
private onContainerClick = (event: React.MouseEvent