{#snippet starInfo(index: number)} {@const info = proyectState.current?.data.getStarRecors(index)} {#if info}
{#each Object.entries(info) as [key, value]} {key}: {#if value} {value} {:else} [undefined] {/if} {/each}
Simbad
{/if} {/snippet}
{#if TwoPlotState.hoveredIndex} {@render starInfo(TwoPlotState.hoveredIndex)} {/if} {#if TwoPlotState.clickedIndex} {@render starInfo(TwoPlotState.clickedIndex)} {/if}