import { ActionIcon, Badge, Box, Group, Text, useMantineColorScheme, } from "@mantine/core"; import { useLocation } from "@tanstack/react-router"; import { Bell, Moon, Sun } from "lucide-react"; export function Header() { const location = useLocation(); const { colorScheme, toggleColorScheme } = useMantineColorScheme(); const dark = colorScheme === "dark"; const title = location.pathname === "/" ? "Desa Darmasaba" : "Desa Darmasaba"; return ( {/* LEFT SPACER (burger sudah di luar) */} {/* CENTER TITLE */} {title} {/* RIGHT ICONS */} {dark ? : } 10 ); }