(({ children, onClick }, _) => (
+ {
+ e.preventDefault();
+ onClick(e);
+ }}
+ >
+ {children}
+
+ ));
+ toggleButton.displayName = 'ToggleButton';
return (
-
- {
- setIsComponentVisible(!isComponentVisible);
- e.preventDefault();
- }}
- >
+
+
-
- }
- className={cx('dropdown-menu dropdown-menu-end', { show: isComponentVisible })}
- >
- {locales}
-
-
+
+
+ {locales}
+
);
}