mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
736 B
TypeScript
35 lines
736 B
TypeScript
import { useOpenAppInfo } from '../context';
|
|
import React from 'react';
|
|
import { FullModalField, Divider, SensitiveText } from '@capital/component';
|
|
import './Profile.less';
|
|
|
|
/**
|
|
* 基础信息
|
|
*/
|
|
const Profile: React.FC = React.memo(() => {
|
|
const { appId, appSecret } = useOpenAppInfo();
|
|
|
|
return (
|
|
<div className="plugin-openapi-app-info_profile">
|
|
<h2>应用凭证</h2>
|
|
|
|
<div>
|
|
<FullModalField title="App ID" content={appId} />
|
|
<FullModalField
|
|
title="App Secret"
|
|
content={<SensitiveText text={appSecret} />}
|
|
/>
|
|
</div>
|
|
|
|
<Divider />
|
|
|
|
<h2>基本信息</h2>
|
|
|
|
{/* TODO */}
|
|
</div>
|
|
);
|
|
});
|
|
Profile.displayName = 'Profile';
|
|
|
|
export default Profile;
|