Files
explore/configs/app/features/easterEggPuzzleBadge.ts
Igor StuevandGitHub df09703517 puzzle-15 (#2471)
* puzzle-15

* puzzle-review

* puzzle game

* puzzle fixes

* separate puzzle feature in readme
2025-06-17 11:24:17 +02:00

25 lines
482 B
TypeScript

import type { Feature } from './types';
import { getEnvValue } from '../utils';
const badgeClaimLink = getEnvValue('NEXT_PUBLIC_PUZZLE_GAME_BADGE_CLAIM_LINK');
const title = 'Easter egg puzzle badge';
const config: Feature<{ badgeClaimLink: string }> = (() => {
if (badgeClaimLink) {
return Object.freeze({
title,
isEnabled: true,
badgeClaimLink,
});
}
return Object.freeze({
title,
isEnabled: false,
});
})();
export default config;