From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001
From: rxliuli <rxliuli@gmail.com>
Date: Tue, 4 Nov 2025 05:03:50 +0800
Subject: init commit

---
 src/components/jet/item/MediumStoryCardItem.svelte | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 src/components/jet/item/MediumStoryCardItem.svelte

(limited to 'src/components/jet/item/MediumStoryCardItem.svelte')

diff --git a/src/components/jet/item/MediumStoryCardItem.svelte b/src/components/jet/item/MediumStoryCardItem.svelte
new file mode 100644
index 0000000..80ead7d
--- /dev/null
+++ b/src/components/jet/item/MediumStoryCardItem.svelte
@@ -0,0 +1,27 @@
+<script lang="ts" context="module">
+    import type {
+        EditorialStoryCard,
+        TodayCard,
+    } from '@jet-app/app-store/api/models';
+
+    export type Item = EditorialStoryCard | TodayCard;
+
+    function isEditorialStoryCard(item: Item): item is EditorialStoryCard {
+        return 'artwork' in item;
+    }
+</script>
+
+<script lang="ts">
+    import EditorialStoryCardItem from '~/components/jet/item/MediumStoryCard/EditorialStoryCardItem.svelte';
+    import SmallStoryCardWithMediaItem, {
+        isSmallStoryCardWithMediaItem,
+    } from '~/components/jet/item/SmallStoryCardWithMediaItem.svelte';
+
+    export let item: Item;
+</script>
+
+{#if isEditorialStoryCard(item)}
+    <EditorialStoryCardItem {item} />
+{:else if isSmallStoryCardWithMediaItem(item)}
+    <SmallStoryCardWithMediaItem {item} />
+{/if}
-- 
cgit v1.2.3

