jiti-meet/react/features/display-name/actions.ts

18 lines
468 B
TypeScript
Raw Normal View History

import { openDialog } from '../base/dialog/actions';
// @ts-ignore
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.
* @returns {Object}
*/
export function openDisplayNamePrompt(onPostSubmit?: Function) {
2019-01-13 19:33:28 +00:00
return openDialog(DisplayNamePrompt, {
onPostSubmit
});
}