visuddhinanda hace 2 meses
padre
commit
5f879f876f
Se han modificado 1 ficheros con 39 adiciones y 0 borrados
  1. 39 0
      dashboard-v4/dashboard/src/components/nut/test/WbwSent.tsx

+ 39 - 0
dashboard-v4/dashboard/src/components/nut/test/WbwSent.tsx

@@ -0,0 +1,39 @@
+import { IWbw } from "../../template/Wbw/WbwWord";
+import { WbwSentCtl } from "../../template/WbwSent";
+
+const mockWbwData: IWbw[] = [
+  {
+    book: 1,
+    para: 1,
+    sn: [1],
+    word: { value: "dhamma", status: 0 },
+    real: { value: "dhamma", status: 0 },
+    note: { value: "note", status: 0 },
+    confidence: 0.95,
+  },
+  {
+    book: 1,
+    para: 1,
+    sn: [2],
+    word: { value: "Buddha", status: 0 },
+    real: { value: "Buddha", status: 0 },
+    confidence: 0.98,
+  },
+];
+const WbwSent = () => {
+  console.debug("test wbw render");
+  return (
+    <WbwSentCtl
+      key={1}
+      mode="edit"
+      data={mockWbwData}
+      book={1}
+      para={2}
+      wordEnd={10}
+      wordStart={2}
+      channelId="123"
+    />
+  );
+};
+
+export default WbwSent;