import { Button, Card, Container, Divider, Flex, Grid, Group, Input, NavLink, Stack, Table, Title } from "@mantine/core"; import { IconCircleOff, IconGauge, IconHome2 } from "@tabler/icons-react"; import { useLocation } from "react-router-dom"; export default function DetailSettingPage() { const { search } = useLocation(); const query = new URLSearchParams(search); const type = query.get("type"); return ( } active={type === "profile" || !type} /> } active={type === "cat-pengaduan"} /> } active={type === "cat-pelayanan"} /> } active={type === "desa"} /> {type === "cat-pengaduan" ? : type === "cat-pelayanan" ? : type === "desa" ? : } ); } function ProfilePage() { return ( Profile Pengguna ) } function KategoriPengaduanPage() { const elements = [ { position: 6, mass: 12.011, symbol: "C", name: "Carbon" }, { position: 7, mass: 14.007, symbol: "N", name: "Nitrogen" }, { position: 39, mass: 88.906, symbol: "Y", name: "Yttrium" }, { position: 56, mass: 137.33, symbol: "Ba", name: "Barium" }, { position: 58, mass: 140.12, symbol: "Ce", name: "Cerium" }, ]; const rows = elements.map((element) => ( {element.position} {element.name} {element.symbol} {element.mass} )); return ( Kategori Pengaduan Tanggal Deskripsi Status User {rows}
) }