visuddhinanda 3 лет назад
Родитель
Сommit
fd69c0eae2

+ 16 - 0
dashboard/src/components/template/Wbw/WbwPage.tsx

@@ -0,0 +1,16 @@
+import { Tag } from "antd";
+
+import { IWbw } from "./WbwWord";
+
+interface IWidget {
+  data: IWbw;
+}
+const Widget = ({ data }: IWidget) => {
+  return (
+    <span>
+      <Tag>{data.word.value}</Tag>
+    </span>
+  );
+};
+
+export default Widget;

+ 17 - 0
dashboard/src/components/template/Wbw/WbwPara.tsx

@@ -0,0 +1,17 @@
+import { Button } from "antd";
+import { PicCenterOutlined } from "@ant-design/icons";
+
+import { IWbw } from "./WbwWord";
+
+interface IWidget {
+  data: IWbw;
+}
+const Widget = ({ data }: IWidget) => {
+  return (
+    <span>
+      <Button size="small" type="link" icon={<PicCenterOutlined />} />
+    </span>
+  );
+};
+
+export default Widget;