"use client"; import { Card, CardContent } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Search, Filter } from "lucide-react"; import Image from "next/image"; import { useState } from "react"; const stats = [ { title: "Total Content", value: 24, color: "bg-blue-500" }, { title: "Drafts", value: 8, color: "bg-slate-600" }, { title: "Pending", value: 10, color: "bg-yellow-500" }, { title: "Approved", value: 10, color: "bg-green-600" }, { title: "Revision/Rejected", value: 6, color: "bg-red-600" }, ]; const contents = [ { id: 1, title: "Bharatu Mardi Hadji Gugur Saat Bertugas...", image: "/image/bharatu.jpg", status: "Pending", category: "News", date: "2024-01-20", }, { id: 2, title: "Novita Hardini: Jangan Sampai Pariwisata...", image: "/image/novita2.png", status: "Approved", category: "News", date: "2024-01-20", }, { id: 3, title: "Lestari Moerdijat: Butuh Afirmasi...", image: "/image/lestari2.png", status: "Rejected", category: "News", date: "2024-01-20", }, { id: 4, title: "Lestari Moerdijat: Butuh Afirmasi...", image: "/image/lestari2.png", status: "Draft", category: "News", date: "2024-01-20", }, ]; const getStatusStyle = (status: string) => { switch (status) { case "Pending Approval": return "bg-yellow-100 text-yellow-700 border border-yellow-200"; case "Approved": return "bg-green-100 text-green-700 border border-green-200"; case "Rejected": return "bg-red-100 text-red-700 border border-red-200"; case "Draft": return "bg-slate-100 text-slate-600 border border-slate-200"; default: return ""; } }; export default function MyContent() { const [search, setSearch] = useState(""); return (

My Content

Track all your content submissions and drafts

{stats.map((item, index) => (
{item.value}

{item.value}

{item.title}

))}
setSearch(e.target.value)} />
{contents.map((item) => (
{item.status} {item.category}
{item.title}
{/* TITLE */}

{item.title}

{item.date}

))}
); }