Update Konten & bahasa
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-28 16:48:14 +07:00
parent 566275348c
commit 183f36f634
29 changed files with 3285 additions and 1427 deletions
@@ -1,12 +1,15 @@
import Icon from '@/components/site/icon';
import { common } from '@/content/common';
import { useAppearance } from '@/hooks/use-appearance';
import { useContent } from '@/hooks/use-locale';
import { cn } from '@/lib/utils';
/** Switches the whole app between light and dark mode. */
export default function ThemeToggle({ className }: { className?: string }) {
const t = useContent(common);
const { resolvedAppearance, updateAppearance } = useAppearance();
const isDark = resolvedAppearance === 'dark';
const label = isDark ? 'Ganti ke mode terang' : 'Ganti ke mode gelap';
const label = isDark ? t.header.toLight : t.header.toDark;
return (
<button