저장팝업 텍스트 색상 수정
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
import type { IndicatorCategory } from './indicatorRegistry';
|
||||
|
||||
/** 지표 선택 팝업 탭 키 */
|
||||
export type IndicatorTabKey = IndicatorCategory | 'All' | 'Main';
|
||||
export type IndicatorTabKey = 'All' | 'Main' | `custom:${string}`;
|
||||
|
||||
export function customTabKey(id: string): IndicatorTabKey {
|
||||
return `custom:${id}`;
|
||||
}
|
||||
|
||||
export function parseCustomTabKey(key: IndicatorTabKey): string | null {
|
||||
return key.startsWith('custom:') ? key.slice(7) : null;
|
||||
}
|
||||
|
||||
export function isCustomTabKey(key: IndicatorTabKey): key is `custom:${string}` {
|
||||
return key.startsWith('custom:');
|
||||
}
|
||||
|
||||
/** Main 탭 고정 지표 (표시 순서) */
|
||||
export const MAIN_INDICATOR_TYPES: readonly string[] = [
|
||||
|
||||
Reference in New Issue
Block a user