2022-10-07 08:39:18 +00:00
|
|
|
import { openDialog } from '../base/dialog/actions';
|
2017-07-28 17:58:04 +00:00
|
|
|
|
2022-10-07 08:39:18 +00:00
|
|
|
// @ts-ignore
|
2017-07-28 17:58:04 +00:00
|
|
|
import { DisplayNamePrompt } from './components';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Signals to open a dialog with the {@code DisplayNamePrompt} component.
|
|
|
|
*
|
2019-01-13 19:33:28 +00:00
|
|
|
* @param {?Function} onPostSubmit - The function to invoke after a successful
|
|
|
|
* submit of the dialog.
|
2017-07-28 17:58:04 +00:00
|
|
|
* @returns {Object}
|
|
|
|
*/
|
2022-10-07 08:39:18 +00:00
|
|
|
export function openDisplayNamePrompt(onPostSubmit?: Function) {
|
2019-01-13 19:33:28 +00:00
|
|
|
return openDialog(DisplayNamePrompt, {
|
|
|
|
onPostSubmit
|
|
|
|
});
|
2017-07-28 17:58:04 +00:00
|
|
|
}
|