qudoco-fe/app/(admin)/admin/news-article/image/page.tsx

30 lines
912 B
TypeScript
Raw Normal View History

2026-02-17 10:02:35 +00:00
"use client";
import { motion } from "framer-motion";
import { useEffect, useState } from "react";
import NewsArticleList from "@/components/main/news-article-list";
import { ARTICLE_TYPE } from "@/constants/article-content-types";
2026-02-17 10:02:35 +00:00
export default function NewsArticleImagePage() {
2026-02-17 10:02:35 +00:00
const [mounted, setMounted] = useState(false);
useEffect(() => setMounted(true), []);
2026-02-17 10:02:35 +00:00
if (!mounted) {
return (
<div className="h-full flex items-center justify-center">
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500" />
2026-02-17 10:02:35 +00:00
</div>
);
}
return (
<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 }}
>
<div className="p-6">
<NewsArticleList kind="image" typeId={ARTICLE_TYPE.IMAGE} />
2026-02-17 10:02:35 +00:00
</div>
</motion.div>
);
}