+ {({ onMouseLeave, onMouseEnter }) => (
+ {
+ delete themeSettings[themeId];
+ }}>
+
+
+ )}
+ ;
+}
+
export function UserCSSSettingsModal({ modalProps, theme }: UserCSSSettingsModalProps) {
// @ts-expect-error UseSettings<> can't determine this is a valid key
- const themeSettings = useSettings(["userCssVars"], false).userCssVars[theme.id];
+ const { userCssVars } = useSettings(["userCssVars"], false);
+
+ const themeVars = userCssVars[theme.id];
const controls: ReactNode[] = [];
@@ -86,7 +105,7 @@ export function UserCSSSettingsModal({ modalProps, theme }: UserCSSSettingsModal