"use client" import { WARNA } from '@/module/_global'; import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, Text, TextInput, Title } from '@mantine/core'; import { useRouter } from 'next/navigation'; import React, { useState } from 'react'; import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2'; import { MdAccountCircle } from 'react-icons/md'; import { RiCircleFill } from 'react-icons/ri'; const dataProject = [ { id: 1, title: 'Project 1', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, { id: 2, title: 'Project 2', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, { id: 3, title: 'Project 3', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, { id: 4, title: 'Project 4', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, { id: 5, title: 'Project 5', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, { id: 6, title: 'Project 6', description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', status: 'PROJECT PROSES', }, ] export default function ProjectProcess() { const [isList, setIsList] = useState(false) const router = useRouter() const handleList = () => { setIsList(!isList) } return ( } placeholder="Pencarian" /> {isList ? ( ) : ( )} Total Kegiatan 35 {isList ? ( {dataProject.map((v, i) => { return ( router.push(`/project/${v.id}`)}>
{v.title}
); })}
) : ( {dataProject.map((v, i) => { return ( router.push(`/project/${v.id}`)}> {v.title} {v.description} {v.status} +5 ); })} )}
); }