import apiFetch from "@/lib/apiFetch";
import {
Avatar,
Box,
Card,
Container,
Divider,
Flex,
Grid,
Group,
Stack,
Table,
Text,
Title
} from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks";
import {
IconMail,
IconMapPin,
IconPhone
} from "@tabler/icons-react";
import { useState } from "react";
import { useLocation } from "react-router-dom";
import useSwr from "swr";
export default function DetailWargaPage() {
const { search } = useLocation();
const query = new URLSearchParams(search);
const id = query.get("id");
return (
);
}
function DetailDataHistori() {
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 (
Histori Pengaduan
Tanggal
Deskripsi
Status
User
{rows}
);
}
function DetailWarga() {
const [page, setPage] = useState(1);
const [value, setValue] = useState("");
const { data, mutate, isLoading } = useSwr("/", () =>
apiFetch.api.pengaduan.list.get({
query: {
status,
search: value,
take: "",
page: "",
},
}),
);
useShallowEffect(() => {
mutate();
}, [status, value]);
const list = data?.data || [];
return (
{/* Profile image */}
{/* Main content */}
Lizbeth Moore
Social Media Strategies
{/* Contact info */}
lizbeth.moore@email.com
+1 555-7788
Greenway Ave, Los Angeles, CA, USA
);
}