Files
upstream-jitsi-meet/react/features/display-name/actions.ts
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

22 lines
723 B
TypeScript

import { openDialog } from '../base/dialog/actions';
import { DisplayNamePrompt } from './components';
/**
* Signals to open a dialog with the {@code DisplayNamePrompt} component.
*
* @param {Object} params - Map containing the callbacks to be executed in the prompt:
* - onPostSubmit - The function to invoke after a successful submit of the dialog.
* - validateInput - The function to invoke after a change in the display name value.
* @returns {Object}
*/
export function openDisplayNamePrompt({ onPostSubmit, validateInput }: {
onPostSubmit?: Function;
validateInput?: Function;
}) {
return openDialog('DisplayNamePrompt', DisplayNamePrompt, {
onPostSubmit,
validateInput
});
}