diff --git a/src/app/co-vat/AntiquityShowcaseClient.tsx b/src/app/co-vat/AntiquityShowcaseClient.tsx new file mode 100644 index 0000000..28096ca --- /dev/null +++ b/src/app/co-vat/AntiquityShowcaseClient.tsx @@ -0,0 +1,20 @@ +"use client"; + +import dynamic from "next/dynamic"; +import type { Antiquity } from "@/app/content"; + +const AntiquityShowcase = dynamic( + () => import("@/app/components/antiquity/AntiquityShowcase").then((m) => m.AntiquityShowcase), + { + ssr: false, + loading: () => ( +
+ Đang tải phòng trưng bày 3D… +
+ ), + }, +); + +export default function AntiquityShowcaseClient({ items }: { items: Antiquity[] }) { + return ; +} diff --git a/src/app/co-vat/page.tsx b/src/app/co-vat/page.tsx index 469630b..d019e9e 100644 --- a/src/app/co-vat/page.tsx +++ b/src/app/co-vat/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import Image from "next/image"; import { Boxes, ScanLine, Sparkles } from "lucide-react"; -import { AntiquityShowcase } from "@/app/components/antiquity/AntiquityShowcase"; +import AntiquityShowcaseClient from "./AntiquityShowcaseClient"; import { BackToTopButton } from "@/app/components/landing/BackToTopButton"; import { SiteFooter } from "@/app/components/landing/SiteFooter"; import { SiteHeader } from "@/app/components/landing/SiteHeader"; @@ -40,7 +40,7 @@ export default function AntiquityPage() { - +
diff --git a/src/app/tour/chua-thai-lac/TourClient.tsx b/src/app/tour/chua-thai-lac/TourClient.tsx new file mode 100644 index 0000000..c7d9a5b --- /dev/null +++ b/src/app/tour/chua-thai-lac/TourClient.tsx @@ -0,0 +1,16 @@ +"use client"; + +import dynamic from "next/dynamic"; + +const VirtualTour = dynamic(() => import("@/app/components/VirtualTour"), { + ssr: false, + loading: () => ( +
+

Đang tải không gian 360°…

+
+ ), +}); + +export default function TourClient({ tourId }: { tourId?: string }) { + return ; +} diff --git a/src/app/tour/chua-thai-lac/page.tsx b/src/app/tour/chua-thai-lac/page.tsx index 1c29f06..e0c1f37 100644 --- a/src/app/tour/chua-thai-lac/page.tsx +++ b/src/app/tour/chua-thai-lac/page.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next"; -import VirtualTour from "@/app/components/VirtualTour"; +import TourClient from "./TourClient"; export const metadata: Metadata = { title: "VR360 Chùa Thái Lạc (Pháp Vân tự)", @@ -8,5 +8,5 @@ export const metadata: Metadata = { }; export default function ChuaThaiLacTourPage() { - return ; + return ; }