mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
25 lines
474 B
TypeScript
25 lines
474 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import { getEnvValue } from '../utils';
|
|
|
|
const dexPoolsEnabled = getEnvValue('NEXT_PUBLIC_DEX_POOLS_ENABLED') === 'true';
|
|
|
|
const title = 'DEX Pools';
|
|
|
|
const config: Feature<{ }> = (() => {
|
|
if (apis.contractInfo && dexPoolsEnabled) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|