import React from 'react';
import { DigitalAssetVerification } from '../../../';
import sdk from 'kts-platform-sdk';
import { SdkConfig } from 'kts-components';
try {
  window.document.domain = window.location.host.split('.').slice(-2).join('.').split(':')[0];
} catch (err) {
  console.log(err);
}
SdkConfig.instance.sdk = { instance: window.top && window.top['$$_kxl_sdk'] };
const user = sdk.instance.user;
export default () => {
  // const remoteConfig = { domain: window.top['$$_kxl_sdk'].service.domain, token: window.top['$$_kxl_sdk'].user.cToken };
  return <DigitalAssetVerification user={user} role='master' didPath='/workbench/m/Kingxunlian.PartyManager' prefix='/dav' serviceTools={window.top && window.top['$$_kxl_sdk'].serviceTools} server={window.top && window.top['$$_kxl_sdk'].service} />;
};
// master是核验方 slave是采集方

//航天独立部署
//import agent from 'src/service';
//import * as Tools from 'src/service/Tools'
//import { MyStore } from 'src/redux';
// const { user } = MyStore.instance.getState();
//<DigitalAssetVerification server={agent} serviceTools={Tools} user={user} prefix='/hangtian' didPath='' role='master'/>