+
{themeOptions.map((option) => (
setTheme(value)}
/>
))}
@@ -144,19 +136,16 @@ function ThemePreviewCard({
description,
active,
mode,
- systemTheme,
onSelect,
}: {
icon: ComponentType>;
label: string;
description: string;
active: boolean;
- mode: "system" | "light" | "dark";
- systemTheme?: string;
- onSelect: (mode: "system" | "light" | "dark") => void;
+ mode: "light" | "dark";
+ onSelect: (mode: "light" | "dark") => void;
}) {
- const previewMode =
- mode === "system" ? (systemTheme === "dark" ? "dark" : "light") : mode;
+ const previewMode = mode;
return (