diff --git a/src/module/project/components/project_cencel.tsx b/src/module/project/components/project_cencel.tsx new file mode 100644 index 0000000..1eb92ed --- /dev/null +++ b/src/module/project/components/project_cencel.tsx @@ -0,0 +1,157 @@ +"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 BATAL', + }, + { + id: 2, + title: 'Project 2', + description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', + status: 'PROJECT BATAL', + }, + { + id: 3, + title: 'Project 3', + description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', + status: 'PROJECT BATAL', + }, + { + id: 4, + title: 'Project 4', + description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', + status: 'PROJECT BATAL', + }, + { + id: 5, + title: 'Project 5', + description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', + status: 'PROJECT BATAL', + }, + { + id: 6, + title: 'Project 6', + description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', + status: 'PROJECT BATAL', + }, +] +export default function ProjectCencel() { + const [isList, setIsList] = useState(false) + const router = useRouter() + + const handleList = () => { + setIsList(!isList) + } + return ( + + + + } + placeholder="Pencarian" + /> + + + + {isList ? ( + + ) : ( + + )} + + + + + + Total Proyek + + 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 + + + + + + ); + })} + + )} +
+
+ ); +}