feat(web): app shell with sidebar nav, language switch, sign out

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 23:01:42 +02:00
parent 057a00c413
commit 684469273f
3 changed files with 120 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { useLocale } from "../i18n/use-locale";
export function LangSwitch() {
const { locale, setLocale } = useLocale();
const base = locale.startsWith("sv") ? "sv" : "en";
return (
<div className="flex gap-1 text-xs">
{(["sv", "en"] as const).map((lng) => (
<button
key={lng}
onClick={() => setLocale(lng)}
aria-pressed={base === lng}
className={base === lng ? "font-bold" : "text-neutral-400"}
>
{lng.toUpperCase()}
</button>
))}
</div>
);
}