kontenhumas-fe/app/[locale]/(admin)/admin/dashboard/page.tsx

33 lines
814 B
TypeScript
Raw Normal View History

2025-09-16 08:29:07 +00:00
"use client";
import DashboardContainer from "@/components/main/dashboard/dashboard-container";
import { motion } from "framer-motion";
import { useEffect, useState } from "react";
export default function AdminPage() {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) {
return (
2025-09-23 11:36:36 +00:00
<div className="h-full overflow-auto bg-gray-50 flex items-center justify-center">
2025-09-16 08:29:07 +00:00
<div className="animate-spin rounded-full h-32 w-32 border-b-2 border-blue-500"></div>
</div>
);
}
return (
<motion.div
2026-01-29 02:11:43 +00:00
className="h-full overflow-auto bg-gray-50 dark:bg-black"
2025-09-16 08:29:07 +00:00
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.3 }}
>
2025-09-23 11:36:36 +00:00
<DashboardContainer />
2025-09-16 08:29:07 +00:00
</motion.div>
);
}