- <table>
- <tr>
- <td class="{isActive($sensor, -1,-1) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 0,-1) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 1,-1) ? 'active' : ''}"></td>
- </tr>
- <tr>
- <td class="{isActive($sensor, -1,0) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 0,0) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 1,0) ? 'active' : ''}"></td>
- </tr>
- <tr>
- <td class="{isActive($sensor, -1,1) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 0,1) ? 'active' : ''}"></td>
- <td class="{isActive($sensor, 1,1) ? 'active' : ''}"></td>
- </tr>
- </table>
+ <table>
+ {#each sectors as _, y}
+ <tr>
+ {#each sectors[y] as _, x}
+ <MinimapSector x="{x}," y="{y}," {size} isActive={isActive(x, y, $topLeft)} />
+ {/each}
+ </tr>
+ {/each}
+ </table>