23 lines
729 B
TypeScript
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;
|
|
}
|