mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
22 lines
549 B
TypeScript
22 lines
549 B
TypeScript
import React from 'react';
|
|
import { WithTranslation } from 'react-i18next';
|
|
|
|
import ConfirmDialog
|
|
from '../../../base/dialog/components/native/ConfirmDialog';
|
|
|
|
interface ILogoutDialogProps extends WithTranslation {
|
|
onLogout: Function;
|
|
}
|
|
|
|
|
|
const LogoutDialog: React.FC<ILogoutDialogProps> = ({ onLogout }: ILogoutDialogProps) => (
|
|
<ConfirmDialog
|
|
cancelLabel = 'dialog.Cancel'
|
|
confirmLabel = 'dialog.Yes'
|
|
descriptionKey = 'dialog.logoutQuestion'
|
|
onSubmit = { onLogout } />
|
|
);
|
|
|
|
export default LogoutDialog;
|
|
|