+ {clickableComponent && (
+
+ {clickableComponent}
+
+ )}
+ {hotkey && (
+
+ )}
+ {isDropdownOpen && (
+
+ {dropdownComponents}
+
+ )}
+
+
+ );
+};
diff --git a/front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx b/front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx
index 0bc811b0f..6ca095ef4 100644
--- a/front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx
+++ b/front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx
@@ -1,103 +1,25 @@
-import { useRef } from 'react';
-import { Keys } from 'react-hotkeys-hook';
-import { flip, offset, Placement, useFloating } from '@floating-ui/react';
-import { Key } from 'ts-key-enum';
+import styled from '@emotion/styled';
-import { HotkeyEffect } from '@/ui/utilities/hotkey/components/HotkeyEffect';
-import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
-import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';
-import { useListenClickOutside } from '@/ui/utilities/pointer-event/hooks/useListenClickOutside';
+const StyledDropdownMenu = styled.div<{
+ disableBlur?: boolean;
+ width?: `${string}px` | 'auto' | number;
+}>`
+ backdrop-filter: ${({ disableBlur }) =>
+ disableBlur ? 'none' : 'blur(20px)'};
-import { useDropdown } from '../hooks/useDropdown';
-import { useInternalHotkeyScopeManagement } from '../hooks/useInternalHotkeyScopeManagement';
+ background: ${({ theme }) => theme.background.secondary};
+ border: 1px solid ${({ theme }) => theme.border.color.medium};
+ border-radius: ${({ theme }) => theme.border.radius.md};
+ box-shadow: ${({ theme }) => theme.boxShadow.strong};
-import { DropdownToggleEffect } from './DropdownToggleEffect';
+ display: flex;
-type DropdownMenuProps = {
- clickableComponent?: JSX.Element | JSX.Element[];
- dropdownComponents: JSX.Element | JSX.Element[];
- hotkey?: {
- key: Keys;
- scope: string;
- };
- dropdownHotkeyScope: HotkeyScope;
- dropdownPlacement?: Placement;
- dropdownOffset?: { x: number; y: number };
- onClickOutside?: () => void;
- onClose?: () => void;
- onOpen?: () => void;
-};
+ flex-direction: column;
-export const DropdownMenu = ({
- clickableComponent,
- dropdownComponents,
- hotkey,
- dropdownHotkeyScope,
- dropdownPlacement = 'bottom-end',
- dropdownOffset = { x: 0, y: 0 },
- onClickOutside,
- onClose,
- onOpen,
-}: DropdownMenuProps) => {
- const containerRef = useRef