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

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

diff --git a/src/components/jet/item/SearchLinkItem.svelte b/src/components/jet/item/SearchLinkItem.svelte
new file mode 100644
index 0000000..cd60512
--- /dev/null
+++ b/src/components/jet/item/SearchLinkItem.svelte
@@ -0,0 +1,47 @@
+<script lang="ts">
+    import {
+        isFlowAction,
+        type SearchLink,
+    } from '@jet-app/app-store/api/models';
+
+    import FlowAction from '~/components/jet/action/FlowAction.svelte';
+    import MagnifyingGlass from '~/sf-symbols/magnifyingglass.svg';
+
+    export let item: SearchLink;
+</script>
+
+{#if isFlowAction(item.clickAction)}
+    <div class="link-container">
+        <FlowAction destination={item.clickAction}>
+            <MagnifyingGlass class="icon" />
+            {item.title}
+        </FlowAction>
+    </div>
+{/if}
+
+<style>
+    .link-container {
+        display: contents;
+    }
+
+    .link-container :global(a) {
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        gap: 6px;
+        padding: 12px;
+        font: var(--title-2);
+        border-radius: var(--global-border-radius-large);
+        background: var(--systemQuinary);
+    }
+
+    .link-container :global(a:hover) {
+        text-decoration: none;
+    }
+
+    .link-container :global(a) :global(.icon) {
+        overflow: visible;
+        width: 20px;
+        fill: currentColor;
+    }
+</style>
-- 
cgit v1.2.3

