"use client"; import { RouterAdminInvestasi } from "@/app/lib/router_hipmi/router_admin"; import { ActionIcon, Box, Center, Grid, Paper, Stack, Table, Text, } from "@mantine/core"; import { IconEdit } from "@tabler/icons-react"; import { useRouter } from "next/navigation"; const listBox = [ { id: 1, name: "Investasi Baru", jumlah: 12, }, { id: 2, name: "Investasi Aktif", jumlah: 3, }, { id: 3, name: "Investasi Selesai", jumlah: 5, }, { id: 4, name: "Total Proyek INvestasi", jumlah: 2, }, ]; const listTable = [ { id: 1, name: "Subway Kuta", }, { id: 2, name: "Event MCD", }, { id: 3, name: "Villa Batubulan", }, { id: 4, name: "Kost Alif Denpasar", }, { id: 5, name: "Pabrik Rokok", }, ]; export default function Admin_Investasi() { const router = useRouter(); const tableBody = listTable.map((e) => ( {e.name} router.push(RouterAdminInvestasi.halaman_aksi + `${e.id}`)} > )); return ( <> {listBox.map((e) => (
{e.name}
{e.jumlah}
))}
List Investasi
{tableBody}
Nama Proyek Investasi Aksi
); }