import { observer } from 'mobx-react';
import { Dialog } from '../../public/valhalla/components/index.js';
import BirthEditor from "../birthEditor/components/index.js";

@observer
export default class GreetingSetDialog extends React.Component {
    render() {
        const { store: { greetingCardSetDialogStore, birthEditorStore } } = this.props;
        return (
            <Dialog ecId={`${this && this.props && this.props.ecId || ''}_Dialog@r9ut2b`} store={greetingCardSetDialogStore}>
				{greetingCardSetDialogStore.visible && <BirthEditor ecId={`${this && this.props && this.props.ecId || ''}_BirthEditor@g1ekno`} store={birthEditorStore}/>}
			</Dialog>
        );
    }
}