Selaa lähdekoodia

add ai translate

visuddhinanda 1 vuosi sitten
vanhempi
sitoutus
5fca0e1247
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      dashboard/src/components/fts/FullTextSearchResult.tsx

+ 5 - 1
dashboard/src/components/fts/FullTextSearchResult.tsx

@@ -1,4 +1,4 @@
-import { List, Skeleton, Space, Tag, Typography } from "antd";
+import { Button, List, Skeleton, Space, Tag, Typography } from "antd";
 import { useEffect, useState } from "react";
 import { Link } from "react-router-dom";
 
@@ -8,6 +8,7 @@ import { TContentType } from "../discussion/DiscussionCreate";
 import Marked from "../general/Marked";
 import PaliText from "../template/Wbw/PaliText";
 import "./search.css";
+import AiTranslate from "../ai/AiTranslate";
 
 const { Title, Text } = Typography;
 
@@ -236,6 +237,9 @@ const FullTxtSearchResultWidget = ({
                 <div>
                   <Marked className="search_content" text={item.content} />
                 </div>
+                <div>
+                  <AiTranslate origin={item.content} />
+                </div>
               </div>
             )}
           </List.Item>