فهرست منبع

:sparkles: create

visuddhinanda 3 سال پیش
والد
کامیت
fd69c0eae2
2فایلهای تغییر یافته به همراه33 افزوده شده و 0 حذف شده
  1. 16 0
      dashboard/src/components/template/Wbw/WbwPage.tsx
  2. 17 0
      dashboard/src/components/template/Wbw/WbwPara.tsx

+ 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;