import { bedTypeMap } from "../../constants/bedTypeMap" import type { Child } from "../../types/child" export function generateChildrenString(children: Child[]): string { return `[${children .map((child) => { const age = child.age const bedType = bedTypeMap[parseInt(child.bed.toString())] return `${age}:${bedType}` }) .join(",")}]` }