2023-01-02 00:20:51 +05:30
|
|
|
<script lang="ts">
|
|
|
|
export let url: string = "";
|
2023-01-03 14:17:39 +05:30
|
|
|
export let isPost: boolean = false;
|
2023-01-02 00:20:51 +05:30
|
|
|
</script>
|
|
|
|
|
2023-01-25 22:41:11 +05:30
|
|
|
<div class="flex flex-col gap-4 p-4 rounded {isPost ? "" : "w-110 bg-secondary"}">
|
2023-01-01 13:52:26 +05:30
|
|
|
<slot />
|
2023-01-02 00:20:51 +05:30
|
|
|
|
|
|
|
{#if url}
|
2023-01-03 23:28:24 +05:30
|
|
|
<a href={url} class="text-center">View on Ghost</a>
|
2023-01-02 00:20:51 +05:30
|
|
|
{/if}
|
2023-01-01 13:52:26 +05:30
|
|
|
</div>
|