From c5bb5179ee2bfc2821f51a51fe4ac6b2289c6956 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Mon, 24 Feb 2025 09:41:59 +0800 Subject: [PATCH] add --- .../CoursePreview/coursePreviewAllmsg.tsx | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 apps/web/src/components/models/course/detail/CoursePreview/coursePreviewAllmsg.tsx diff --git a/apps/web/src/components/models/course/detail/CoursePreview/coursePreviewAllmsg.tsx b/apps/web/src/components/models/course/detail/CoursePreview/coursePreviewAllmsg.tsx new file mode 100644 index 0000000..73ed1f9 --- /dev/null +++ b/apps/web/src/components/models/course/detail/CoursePreview/coursePreviewAllmsg.tsx @@ -0,0 +1,73 @@ +import { useEffect } from "react"; +import { CoursePreviewMsg } from "@web/src/app/main/course/preview/type.ts"; +import { Button, Tabs, Image, Skeleton } from "antd"; +import type { TabsProps } from "antd"; +import { PlayCircleOutlined } from "@ant-design/icons"; +export function CoursePreviewAllmsg({ + previewMsg, + items, + isLoading, +}: { + previewMsg?: CoursePreviewMsg; + items: TabsProps["items"]; + isLoading: boolean; +}) { + useEffect(() => { + console.log(previewMsg); + }); + const TapOnChange = (key: string) => { + console.log(key); + }; + return ( +
+
+
+ example +
+ +
+
+
+ {isLoading ? ( + + ) : ( + <> + + {previewMsg.Title} + + + {previewMsg.SubTitle} + + + {previewMsg.Description} + + + )} + + +
+
+
+ +
+
+ ); +}