3dc94cc85a
- Wallet CI, Tauri, webpack, routes - Send and Sahred UI - Wallet app build and readme
21 lines
493 B
TypeScript
21 lines
493 B
TypeScript
import React, { useContext } from 'react';
|
|
import { NymCard } from '../../components';
|
|
import { ApiList } from './ApiList';
|
|
|
|
import { config } from '../../config';
|
|
import { AppContext } from '../../context/main';
|
|
|
|
export const InternalDocs = () => {
|
|
const { isAdminAddress } = useContext(AppContext);
|
|
|
|
if (!config.INTERNAL_DOCS_ENABLED || !isAdminAddress) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<NymCard title="Docs" subheader="Internal API docs">
|
|
<ApiList />
|
|
</NymCard>
|
|
);
|
|
};
|