{$USER_DATA ? getTimeBasedGreeting($USER_DATA?.name) : 'Welcome to Rugplay!'}

{#if $USER_DATA} Here's the market overview for today. {:else} You need to or{' '} to play. {/if}

{#if loading}
Loading market data...
{:else if coins.length === 0}
No coins available

Be the first to create a coin!

{:else}

Market Overview

Name Price 24h Change {#each coins as coin} {coin.name} (*{coin.symbol}) ${formatPrice(coin.price)} = 0 ? 'success' : 'destructive'}> {coin.change24h >= 0 ? '+' : ''}{coin.change24h.toFixed(2)}% {/each}
{/if}