web-mikul-news/app/(admin)/admin/dashboard/page.tsx

35 lines
942 B
TypeScript
Raw Normal View History

2025-07-03 02:52:06 +00:00
"use client";
2025-07-02 15:44:00 +00:00
import DashboardContainer from "@/components/main/dashboard/dashboard-container";
2025-07-03 02:52:06 +00:00
import { motion } from "framer-motion";
import { useEffect, useState } from "react";
2025-07-02 15:44:00 +00:00
export default function AdminPage() {
2025-07-03 02:52:06 +00:00
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) {
return (
<div className="h-full overflow-auto bg-gradient-to-br from-slate-50/50 via-white to-slate-50/50 flex items-center justify-center">
<div className="animate-spin rounded-full h-32 w-32 border-b-2 border-blue-500"></div>
</div>
);
}
2025-07-02 15:44:00 +00:00
return (
2025-07-03 02:52:06 +00:00
<motion.div
className="h-full overflow-auto bg-gradient-to-br from-slate-50/50 via-white to-slate-50/50"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.3 }}
>
<div className="p-6">
2025-07-02 15:44:00 +00:00
<DashboardContainer />
</div>
2025-07-03 02:52:06 +00:00
</motion.div>
2025-07-02 15:44:00 +00:00
);
}