Files
2026-10-11 22:24:54 +05:00

14 lines
522 B
TypeScript

// Первый витринный микс: имя и catalogId табаков состава (для e2e стоп-листа).
import { hookahMixes } from "../src/data/catalog";
import { FLAVORS } from "../src/data/flavors";
const first = hookahMixes[0];
const ids = first.items
.map((i) => {
const f = FLAVORS.find((x) => x.id === i.flavorId);
return f ? (f.catalogId ?? f.id) : null;
})
.filter((x): x is string => !!x);
console.log("FIRST_MIX=" + first.name);
console.log("ITEM_IDS=" + ids.join(","));