Typescript ✅
Code
# Code
```typescript []
function areaOfMaxDiagonal(dimensions: number[][]): number {
    let maxDiagonal = 0;
    let result = 0;
    for (const [width, height] of dimensions) {
        const diagonal = (width ** 2 + height ** 2) ** 0.5;
        if (diagonal > maxDiagonal) {
            maxDiagonal = diagonal;
            result = width * height;
            continue;
        }
        if (diagonal === maxDiagonal) {
            if (width * height > result) {
                result = width * height;
            }
        }
    }
    return result;
}
```
['TypeScript']