import { ActivityType, RelatedPlaceCategory, AttractionCategory, BasePointType } from '../types' /** * Activity 타입에 대한 이모지 반환 */ export const getActivityEmoji = (type: ActivityType): string => { const emojiMap: Record = { attraction: '🏞️', food: '🍴', accommodation: '🏨', transport: '🚗', other: '📍' } return emojiMap[type] || '📍' } /** * Activity 타입에 대한 한글 이름 반환 */ export const getActivityName = (type: ActivityType): string => { const nameMap: Record = { attraction: '관광지', food: '식사', accommodation: '숙소', transport: '교통', other: '기타' } return nameMap[type] || '기타' } /** * RelatedPlace 카테고리에 대한 이모지 반환 */ export const getRelatedPlaceCategoryEmoji = (category: RelatedPlaceCategory): string => { const emojiMap: Record = { restaurant: '🍴', attraction: '🏞️', shopping: '🛍️', accommodation: '🏨', other: '📍' } return emojiMap[category] || '📍' } /** * RelatedPlace 카테고리에 대한 한글 이름 반환 */ export const getRelatedPlaceCategoryName = (category: RelatedPlaceCategory): string => { const nameMap: Record = { restaurant: '식당', attraction: '관광지', shopping: '쇼핑', accommodation: '숙소', other: '기타' } return nameMap[category] || '기타' } /** * RelatedPlace 카테고리에 대한 배경색 반환 (Tailwind CSS 클래스) */ export const getRelatedPlaceCategoryColor = (category: RelatedPlaceCategory): string => { const colorMap: Record = { restaurant: 'bg-orange-500', attraction: 'bg-blue-500', shopping: 'bg-pink-500', accommodation: 'bg-purple-500', other: 'bg-gray-500' } return colorMap[category] || 'bg-gray-500' } /** * Attraction 카테고리에 대한 이모지 반환 */ export const getAttractionCategoryEmoji = (category: AttractionCategory): string => { const emojiMap: Record = { castle: '🏯', nature: '🏞️', onsen: '♨️', temple: '⛩️', food: '🍴', other: '📍' } return emojiMap[category] || '📍' } /** * Attraction 카테고리에 대한 한글 이름 반환 */ export const getAttractionCategoryName = (category: AttractionCategory): string => { const nameMap: Record = { castle: '성', nature: '자연', onsen: '온천', temple: '신사/사찰', food: '맛집', other: '기타' } return nameMap[category] || '기타' } /** * BasePoint 타입에 대한 이모지 반환 */ export const getBasePointEmoji = (type: BasePointType): string => { const emojiMap: Record = { accommodation: '🏨', airport: '✈️', station: '🚉', parking: '🅿️', other: '📍' } return emojiMap[type] || '📍' } /** * BasePoint 타입에 대한 한글 이름 반환 */ export const getBasePointName = (type: BasePointType): string => { const nameMap: Record = { accommodation: '숙소', airport: '공항', station: '역', parking: '주차장', other: '기타' } return nameMap[type] || '기타' }