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/shelf/MarkerShelf.svelte | 36 +++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 src/components/jet/shelf/MarkerShelf.svelte

(limited to 'src/components/jet/shelf/MarkerShelf.svelte')

diff --git a/src/components/jet/shelf/MarkerShelf.svelte b/src/components/jet/shelf/MarkerShelf.svelte
new file mode 100644
index 0000000..c719235
--- /dev/null
+++ b/src/components/jet/shelf/MarkerShelf.svelte
@@ -0,0 +1,36 @@
+<script lang="ts" context="module">
+    import type { ShelfBasedProductPage } from '@jet-app/app-store/api/models';
+    import type {
+        Lockup,
+        Shelf,
+        ShelfMarker,
+    } from '@jet-app/app-store/api/models';
+
+    export interface MarkerShelf extends Shelf {
+        contentType: 'marker';
+        marker: ShelfMarker;
+        items: Lockup[];
+    }
+
+    export function isMarkerShelf(shelf: Shelf): shelf is MarkerShelf {
+        const { contentType, marker, items } = shelf;
+
+        return (
+            contentType === 'marker' &&
+            typeof marker === 'string' &&
+            Array.isArray(items)
+        );
+    }
+</script>
+
+<script lang="ts">
+    import ProductTopLockup from '~/components/jet/marker-shelf/ProductTopLockup.svelte';
+
+    export let shelf: MarkerShelf;
+
+    export let page: ShelfBasedProductPage;
+</script>
+
+{#if shelf.marker === 'productTopLockup'}
+    <ProductTopLockup {page} />
+{/if}
-- 
cgit v1.2.3

