"use client"; import { useState } from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Badge } from "@/components/ui/badge"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { Search, Filter, Eye, Pencil, Trash2, Plus } from "lucide-react"; export default function NewsImage() { const [activeCategory, setActiveCategory] = useState("All"); const categories = [ { name: "All", count: 24 }, { name: "Technology", count: 8 }, { name: "Partnership", count: 5 }, { name: "Investment", count: 3 }, { name: "News", count: 4 }, { name: "Event", count: 2 }, { name: "CSR", count: 2 }, ]; const articles = [ { title: "Novita Hardini: Jangan Sampai Pariwisata Meminggirkan Warga Lokal", category: "Technology", author: "John Kontributor", status: "Published", date: "2024-01-15", }, { title: "Bharatu Mardi Hadji Gugur Saat Bertugas, Diganjar Kenaikan Pangkat Luar Biasa", category: "Partnership", author: "Sarah Editor", status: "Pending", date: "2024-01-14", }, { title: "Lestari Moerdijat: Butuh Afirmasi dan Edukasi untuk Dorong Perempuan Aktif di Dunia Politik", category: "Investment", author: "Mike Writer", status: "Draft", date: "2024-01-13", }, { title: "SEKRETARIS MAHKAMAH AGUNG LANTIK HAKIM TINGGI PENGAWAS", category: "CSR", author: "Jane Content", status: "Published", date: "2024-01-12", }, { title: "Mudik Nyaman Bersama Pertamina: Layanan 24 Jam, Motoris, dan Fasilitas Lengkap", category: "Event", author: "John Kontributor", status: "Rejected", date: "2024-01-11", }, ]; const statusVariant = (status: string) => { switch (status) { case "Published": return "bg-green-100 text-green-700"; case "Pending": return "bg-yellow-100 text-yellow-700"; case "Draft": return "bg-gray-200 text-gray-600"; case "Rejected": return "bg-red-100 text-red-600"; default: return ""; } }; return (
{/* ================= HEADER ================= */}

News & Articles

Create and manage news articles and blog posts

{/* ================= CATEGORY FILTER ================= */}
{categories.map((cat) => ( ))}
{/* ================= SEARCH + FILTER ================= */}
{/* ================= TABLE ================= */} Article Category Author Status Date Actions {articles.map((article, index) => ( {article.title} {article.category} {article.author} {article.status} {article.date} ))}
{/* ================= PAGINATION ================= */}

Showing 1 to 5 of 24 articles

); }