import { trainTypeID } from "@/lib/CommonTypes"; import { getTrainType, type TrainTypeFontFamily, } from "@/lib/getTrainType"; type types = ( type: trainTypeID, id: string, ) => [string, TrainTypeFontFamily | undefined, boolean]; export const getStringConfig: types = (type, id) => { const { shortName, fontFamily, isOneMan } = getTrainType({ type, id }); const typeString = type === "Other" && shortName === "その他" ? "" : shortName; return [typeString, fontFamily, isOneMan]; };