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

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

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

diff --git a/src/components/jet/item/ProductReview/UserReviewItem.svelte b/src/components/jet/item/ProductReview/UserReviewItem.svelte
new file mode 100644
index 0000000..472dd1f
--- /dev/null
+++ b/src/components/jet/item/ProductReview/UserReviewItem.svelte
@@ -0,0 +1,25 @@
+<script lang="ts" context="module">
+    import {
+        type Review as ReviewModel,
+        ProductReview,
+    } from '@jet-app/app-store/api/models';
+
+    interface UserReview extends ProductReview {
+        sourceType: 'user';
+        review: ReviewModel;
+    }
+
+    export function isUserReviewItem(
+        productReview: ProductReview,
+    ): productReview is UserReview {
+        return productReview.sourceType === 'user';
+    }
+</script>
+
+<script lang="ts">
+    import ReviewItem from '~/components/jet/item/ReviewItem.svelte';
+
+    export let item: UserReview;
+</script>
+
+<ReviewItem item={item.review} />
-- 
cgit v1.2.3

