import DesaSetting from "@/components/DesaSetting"; import KategoriPelayananSurat from "@/components/KategoriPelayananSurat"; import KategoriPengaduan from "@/components/KategoriPengaduan"; import ProfileUser from "@/components/ProfileUser"; import UserSetting from "@/components/UserSetting"; import { Button, Card, Container, Divider, Flex, Grid, NavLink, Stack, Table, Title, } from "@mantine/core"; import { IconBuildingBank, IconCategory2, IconMailSpark, IconUserCog, IconUsersGroup, } 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 === "user"} /> } active={type === "cat-pengaduan"} /> } active={type === "cat-pelayanan"} /> } active={type === "desa"} /> {type === "cat-pengaduan" ? ( ) : type === "cat-pelayanan" ? ( ) : type === "desa" ? ( ) : type === "user" ? ( ) : ( )} ); }