(feat): initial stuff
All checks were successful
/ package (push) Successful in 1m6s

This commit is contained in:
Alois 2026-07-26 02:56:07 +02:00
commit 29098d1f61
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
40 changed files with 3113 additions and 515 deletions

View file

@ -0,0 +1,29 @@
import { useState } from "react";
import { useOnboardingStep } from "../cmp/onboarding-flow";
import { ThemeCustomizer } from "./pickers/StylePicker";
export function ThemeOnboardingPage({
value,
onValueChange,
}: {
value?: string | null;
onValueChange?: (id: string) => void;
}) {
const [localThemeId, setLocalThemeId] = useState<string | null>(null);
const chosenThemeId = value === undefined ? localThemeId : value;
useOnboardingStep({ canContinue: chosenThemeId !== null });
const choose = (id: string) => {
setLocalThemeId(id);
onValueChange?.(id);
};
return (
<ThemeCustomizer
value={chosenThemeId}
onValueChange={choose}
showHeader={false}
/>
);
}