<script lang="ts">
    export let entry: TibiArticle
</script>

{#if entry}
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="article-details {entry?.article?.general?.type}">
                    {#if entry?.article?.content?.title}
                        <h1 class="article-title">{@html entry?.article?.content?.title}</h1>
                    {/if}

                    {#if entry?.article?.content?.subtitle}
                        <div class="article-subtitle">{@html entry?.article?.content?.subtitle}</div>
                    {/if}

                    {#if entry?.article?.content?.types?.teaser}
                        <div class="article-teaser">{@html entry?.article?.content?.types?.teaser}</div>
                    {/if}

                    {#if entry?.article?.content?.types?.details}
                        <div class="article-details">{@html entry?.article?.content?.types?.details}</div>
                    {/if}
                </div>
            </div>
        </div>
    </div>
{/if}
