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.
tailchat/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.tsx

36 lines
785 B
TypeScript

import { useOpenAppInfo } from '../context';
import React from 'react';
import { FullModalField, Divider } from '@capital/component';
import { SecretValue } from '../../components/SecretValue';
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={<SecretValue>{appSecret}</SecretValue>}
/>
</div>
<Divider />
<h2></h2>
{/* TODO */}
</div>
);
});
Profile.displayName = 'Profile';
export default Profile;