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.
36 lines
785 B
TypeScript
36 lines
785 B
TypeScript
3 years ago
|
import { useOpenAppInfo } from '../context';
|
||
3 years ago
|
import React from 'react';
|
||
3 years ago
|
import { FullModalField, Divider } from '@capital/component';
|
||
|
import { SecretValue } from '../../components/SecretValue';
|
||
|
import './Profile.less';
|
||
3 years ago
|
|
||
3 years ago
|
/**
|
||
|
* 基础信息
|
||
|
*/
|
||
3 years ago
|
const Profile: React.FC = React.memo(() => {
|
||
3 years ago
|
const { appId, appSecret } = useOpenAppInfo();
|
||
|
|
||
|
return (
|
||
3 years ago
|
<div className="plugin-openapi-app-info_profile">
|
||
3 years ago
|
<h2>应用凭证</h2>
|
||
|
|
||
|
<div>
|
||
|
<FullModalField title="App ID" content={appId} />
|
||
|
<FullModalField
|
||
|
title="App Secret"
|
||
|
content={<SecretValue>{appSecret}</SecretValue>}
|
||
|
/>
|
||
|
</div>
|
||
|
|
||
|
<Divider />
|
||
|
|
||
|
<h2>基本信息</h2>
|
||
|
|
||
|
{/* TODO */}
|
||
|
</div>
|
||
|
);
|
||
3 years ago
|
});
|
||
|
Profile.displayName = 'Profile';
|
||
|
|
||
|
export default Profile;
|