mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import app from '../app';
|
|
import account from './account';
|
|
import verifiedTokens from './verified-tokens';
|
|
|
|
const title = 'Address verification in "My account"';
|
|
|
|
const config: Feature<{}> = (() => {
|
|
if (!app.isPrivateMode && account.isEnabled && verifiedTokens.isEnabled && apis.admin) {
|
|
return Object.freeze({
|
|
title: 'Address verification in "My account"',
|
|
isEnabled: true,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|