• {#if rawData.some((item) => checkIfYoutubeVideo(item.url) !== null)}
  • {/if} {#if !$page?.url?.pathname.includes("etf")}
  • {/if}
{#if rawData?.length > 0} {#if filteredNewsList?.length > 0}
{#each filteredNewsList as item, index}
{#if checkIfYoutubeVideo(item.url)} {#if showVideo[index]}
{:else}
handlePlayClick(index)} >
{/if} {:else} {/if}

{/each}
{:else}
No {displaySection === "videos" ? "videos" : "articles"} found for this stock.
{/if} {#if newsList?.length !== rawData?.length && filteredNewsList?.length > 0 && displaySection === "all"} {/if} {:else} No News article available yet {/if}