WbwSent.tsx 765 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type { IWbw } from "../../template/Wbw/WbwWord"
  2. import { WbwSentCtl } from "../../template/WbwSent";
  3. const mockWbwData: IWbw[] = [
  4. {
  5. book: 1,
  6. para: 1,
  7. sn: [1],
  8. word: { value: "dhamma", status: 0 },
  9. real: { value: "dhamma", status: 0 },
  10. note: { value: "note", status: 0 },
  11. confidence: 0.95,
  12. },
  13. {
  14. book: 1,
  15. para: 1,
  16. sn: [2],
  17. word: { value: "Buddha", status: 0 },
  18. real: { value: "Buddha", status: 0 },
  19. confidence: 0.98,
  20. },
  21. ];
  22. const WbwSent = () => {
  23. console.debug("test wbw render");
  24. return (
  25. <WbwSentCtl
  26. key={1}
  27. mode="edit"
  28. data={mockWbwData}
  29. book={1}
  30. para={2}
  31. wordEnd={10}
  32. wordStart={2}
  33. channelId="123"
  34. />
  35. );
  36. };
  37. export default WbwSent;