Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

711 B
Raw Blame
import {
    formatVariableReference as sharedFormatVariableReference,
    getCodeName as sharedGetCodeName,
    VARIABLE_TYPE_OPTIONS as sharedVariableTypeOptions,
} from '~/queries/nodes/DataVisualization/Components/Variables/VariableFields'
import { VariableType } from '~/queries/nodes/DataVisualization/types'

// Re-export from shared location
export const VARIABLE_TYPE_OPTIONS = sharedVariableTypeOptions
export const formatVariableReference = sharedFormatVariableReference
export const getCodeName = sharedGetCodeName

export const VARIABLE_TYPE_LABELS: Record<VariableType, string> = Object.fromEntries(
    VARIABLE_TYPE_OPTIONS.map((opt) => [opt.value, opt.label])
) as Record<VariableType, string>