getSelectedQueryKey.tsx 352 B

12345678910
  1. import {TrendChangeType} from 'sentry/views/performance/trends/types';
  2. export const trendSelectedQueryKeys = {
  3. [TrendChangeType.IMPROVED]: 'improvedSelected',
  4. [TrendChangeType.REGRESSION]: 'regressionSelected',
  5. };
  6. export default function getSelectedQueryKey(trendChangeType: TrendChangeType) {
  7. return trendSelectedQueryKeys[trendChangeType];
  8. }