+
+ {themes.map((themeOption) => (
+ onChange(themeOption)}
+ isSelected={currentTheme.name === themeOption.name}
+ />
+ ))}
+
+
+ );
+}
+
+interface ThemeCardProps {
+ themeOption: ThemeRegistryItem;
+ isSelected?: boolean;
+ onSelect: () => void;
+}
+
+function ThemeCard({ themeOption, isSelected, onSelect }: ThemeCardProps) {
+ const theme = themeOption.build();
+ const label = getTranslatedThemeName(themeOption);
+ const styles = useStyles2(getStyles);
+
+ return (
+