2
0

Home.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import ReactMarkdown from "react-markdown";
  2. import code_png from "../../assets/nut/code.png";
  3. import MarkdownForm from "./MarkdownForm";
  4. import MarkdownShow from "./MarkdownShow";
  5. import FontBox from "./FontBox";
  6. import DemoForm from "./Form";
  7. import TreeTest from "./TreeTest";
  8. import Share from "../share/Share";
  9. import ChannelPicker from "../channel/ChannelPicker";
  10. import { Layout } from "antd";
  11. const Widget = () => {
  12. return (
  13. <Layout>
  14. <h1>Home</h1>
  15. <ChannelPicker
  16. type="chapter"
  17. articleId="168-867_7fea264d-7a26-40f8-bef7-bc95102760fb"
  18. />
  19. <div>
  20. <Share resId="dd" resType="dd" />
  21. </div>
  22. <h2>TreeTest</h2>
  23. <TreeTest />
  24. <br />
  25. <DemoForm />
  26. <br />
  27. <FontBox />
  28. <br />
  29. <MarkdownShow body="- Hello, **《mint》**!" />
  30. <br />
  31. <h3>Form</h3>
  32. <MarkdownForm />
  33. <br />
  34. <img alt="code" src={code_png} />
  35. <div>
  36. <ReactMarkdown>*This* is text with `quote`</ReactMarkdown>
  37. </div>
  38. </Layout>
  39. );
  40. };
  41. export default Widget;