Retrieves a formula mode by its ID from central config. College basketball analytics constant lookup.
/**
* Formula Editor Modes Configuration
*
* Central location for all formula editor mode definitions.
*
* ==========================================
* TO ADD A NEW MODE:
* ==========================================
* 1. Add entry to MODES array below
* 2. Create mode editor component in src/components/FormulaEditor/modes/
* 3. Add mode case to formula generation logic in src/lib/generators/formulaGenerators.ts
* 4. Add TabsContent in FormulaEditor.tsx
*/
import { Code, Brain, MagicWand, Group, Binocular, Search, Mail } from 'iconoir-react';
/**
* Formula editor modes configuration
*/
export const MODES = [
{
id: 'code',
name: 'Code Mode',
icon: Code,
description: 'Write custom JavaScript formulas with full access to row data',
requiresApiKey: false,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key