You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShareVideoConfirmDialog.tsx 974B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import { DialogProps } from '../../../base/dialog/constants';
  4. import Dialog from '../../../base/ui/components/web/Dialog';
  5. interface IProps extends DialogProps {
  6. /**
  7. * The name of the remote participant that shared the video.
  8. */
  9. actorName: string;
  10. /**
  11. * The function to execute when confirmed.
  12. */
  13. onSubmit: () => void;
  14. }
  15. /**
  16. * Dialog to confirm playing a video shared from a remote participant.
  17. *
  18. * @returns {JSX.Element}
  19. */
  20. export default function ShareVideoConfirmDialog({ actorName, onSubmit }: IProps): JSX.Element {
  21. const { t } = useTranslation();
  22. return (
  23. <Dialog
  24. onSubmit = { onSubmit }
  25. title = { t('dialog.shareVideoConfirmPlayTitle', {
  26. name: actorName
  27. }) }>
  28. <div>
  29. { t('dialog.shareVideoConfirmPlay') }
  30. </div>
  31. </Dialog>
  32. );
  33. }