import type { RouteProgressState } from '../types/timeline';
import { asset } from '../utils/asset';

const STRUCTURE_STATES: RouteProgressState[] = ['upcoming', 'passed', 'revisit'];

// 교량/터널 3분할 이미지는 RouteSegment.module.scss 에서 직접 url() 로 쓴다.

export function terminalCircleAsset(
  state: Extract<RouteProgressState, 'upcoming' | 'passed' | 'revisit'>,
): string {
  return asset(`/assets/route-segment/terminal/circle-${state}.png`);
}

export function isStructureAssetState(
  state: RouteProgressState,
): state is Extract<RouteProgressState, 'upcoming' | 'passed' | 'revisit'> {
  return STRUCTURE_STATES.includes(state);
}
