connect(mapStateToProps(id), mapDispatchToProps(id))(component);
export const mapStateToProps = (id: string) => <T>(state: { dialog: DialogState }): WithDialogStateProps<T> => {
connect(mapStateToProps(id), mapDispatchToProps(id))(component);
export const mapStateToProps = (id: string) => <T>(state: { dialog: DialogState }): WithDialogStateProps<T> => {