Files
irth-new-client-120/src/utils/getAmentiesCount.ts
T
2025-07-21 16:28:05 +05:00

23 lines
729 B
TypeScript

export interface AmentiesCount {
total: number;
indoor?: number;
outdoor?: number;
}
export default function getAmentiesCount(
complexName: string,
floorTitle: string
):AmentiesCount | null {
const dict = new Map<string, AmentiesCount>([
["marasi-drive Rooftop", { total: 10 }],
["marasi-drive Sky Garden", { total: 15, indoor: 3, outdoor: 12 }],
["marasi-drive Podium Level", { total: 27, indoor: 13, outdoor: 14 }],
["marasi-drive Ground Level", { total: 7 }],
["dubai-marina Rooftop", { total: 14 }],
["dubai-marina Podium Level", { total: 21, indoor: 8, outdoor: 13 }],
["dubai-marina Ground Level", { total: 14 }],
]);
return dict.get(`${complexName} ${floorTitle}`) || null;
}