From 7b79fb32751e92d71ffd3b5c79e86a78ced3a8ea Mon Sep 17 00:00:00 2001 From: mzaxd Date: Sun, 22 Feb 2026 12:03:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20AI=E6=90=9C=E7=B4=A2=E7=A9=BA?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=96=87=E6=A1=88=E6=94=B9=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/search/AISearchResults.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/search/AISearchResults.tsx b/src/components/search/AISearchResults.tsx index fbf7640..8cea0a2 100644 --- a/src/components/search/AISearchResults.tsx +++ b/src/components/search/AISearchResults.tsx @@ -12,21 +12,19 @@ interface AISearchResult { interface AISearchResultsProps { results: AISearchResult[] locale: string + emptyText: string translations: { viewDetails: string - submitProjectTitle: string - submitProjectDescription: string - submitNow: string } } -export function AISearchResults({ results, locale, translations }: AISearchResultsProps) { +export function AISearchResults({ results, locale, emptyText, translations }: AISearchResultsProps) { if (results.length === 0) { return (
🔍

- 未找到相关项目,试试其他描述吧 + {emptyText}

)