+ {themeOptions.map((option) => {
+ const active = userSettings.mode === option.value;
+ return (
+
handleSelectTheme(option.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ handleSelectTheme(option.value);
+ }
+ }}
+ >
+
+
+ {option.label}
+ {active ? (
+
+ ) : (
+
+ )}
+
+