mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
518 B
TypeScript
26 lines
518 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import { getEnvValue } from '../utils';
|
|
|
|
const title = 'Ton Application Chain (TAC)';
|
|
|
|
const tonExplorerUrl = getEnvValue('NEXT_PUBLIC_TAC_TON_EXPLORER_URL');
|
|
|
|
const config: Feature<{ tonExplorerUrl: string }> = (() => {
|
|
if (apis.tac && tonExplorerUrl) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
tonExplorerUrl,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|