mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* base implementation of client script with envs values * better ENVs setup for pw tests * fix tests
28 lines
651 B
TypeScript
28 lines
651 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import { getEnvValue } from '../utils';
|
|
|
|
const title = 'Beacon chain';
|
|
|
|
const config: Feature<{ currency: { symbol: string } }> = (() => {
|
|
if (getEnvValue('NEXT_PUBLIC_HAS_BEACON_CHAIN') === 'true') {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
currency: {
|
|
symbol:
|
|
getEnvValue('NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL') ||
|
|
getEnvValue('NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL') ||
|
|
'', // maybe we need some other default value here
|
|
},
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|