import React from 'react';
import { Modal } from '@douyinfe/semi-ui';

const DemoteUserModal = ({ visible, onCancel, onConfirm, user, t }) => {
  return (
    <Modal
      title={t('确定要降级此用户吗？')}
      visible={visible}
      onCancel={onCancel}
      onOk={onConfirm}
      type="warning"
    >
      {t('此操作将降低用户的权限级别')}
    </Modal>
  );
};

export default DemoteUserModal; 