import React from 'react'; import { Tabs } from 'antd-mobile'; import Style from './mobile.module.less'; import ByMobile from './byMobile/index'; import ByUserEntityGrant from './byUserEntityGrant'; export default function Render(props) { const { entity, entityId, relations, redirectToAfterConfirm, qrCodeType, claimUrl, rule, passwordRequired, enabled, onUserEntityGrantCreated, } = props.data; const { t } = props.methods; if (enabled.length === 0) { return (