update lisensi prosess
tests / ci (push) Has been cancelled

This commit is contained in:
Wian Drs
2026-08-25 13:43:55 +07:00
parent 1e80be180e
commit 60946ddf37
58 changed files with 2903 additions and 165 deletions
@@ -0,0 +1,19 @@
import { Moon, Sun } from 'lucide-react';
import { useAppearance } from '@/hooks/use-appearance';
export default function PublicThemeToggle() {
const { resolvedAppearance, updateAppearance } = useAppearance();
const isDark = resolvedAppearance === 'dark';
return (
<button
type="button"
onClick={() => updateAppearance(isDark ? 'light' : 'dark')}
className="inline-flex size-10 items-center justify-center rounded-lg border border-border bg-background text-foreground transition hover:bg-muted"
aria-label={isDark ? 'Gunakan mode terang' : 'Gunakan mode gelap'}
title={isDark ? 'Mode terang' : 'Mode gelap'}
>
{isDark ? <Sun className="size-4" /> : <Moon className="size-4" />}
</button>
);
}