mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
23 lines
457 B
TypeScript
23 lines
457 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import { getEnvValue } from '../utils';
|
|
|
|
const title = 'Cross-chain transactions';
|
|
|
|
const config: Feature<{}> = (() => {
|
|
if (getEnvValue('NEXT_PUBLIC_CROSS_CHAIN_TXS_ENABLED') === 'true' && apis.interchainIndexer) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|