Files
2025-06-06 16:28:50 +02:00

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;