+
setIsOpen(!isOpen)}
+ onMouseEnter={() => setIsTriggerHovered(true)}
+ onMouseLeave={() => setIsTriggerHovered(false)}
+ style={{
+ flex: 1,
+ textAlign: "left",
+ ...typography.Rg_16,
+ fontWeight: selected ? 700 : isTriggerHovered ? 400 : 300,
+ color: selected
+ ? "var(--color-bw-black)"
+ : "var(--color-gray-medium)",
+ transition: "font-weight 0.2s ease",
+ }}
+ >
+ {selected || placeholder}
+
+
+
setIsOpen(!isOpen)}
+ style={{
+ marginLeft: "8px",
+ cursor: "pointer",
+ }}
+ >
+ {isOpen ? : }
+
+
5
+ ? `${5 * 50}px`
+ : `${options.length * 50}px`
+ : "0",
+ overflowY: options.length > 5 ? "auto" : "hidden",
+ overflowX: "hidden",
+ transition: "max-height 0.2s ease",
+ }}
+ >
+ {options.map((option, index) => (
+
+ {index !== 0 && (
+
+ )}
+ handleSelect(option)}
+ onMouseEnter={(e) => {
+ e.currentTarget.style.fontWeight = "500";
+ e.currentTarget.style.color = "var(--color-gray-strong)";
+ }}
+ onMouseLeave={(e) => {
+ e.currentTarget.style.fontWeight = "400";
+ e.currentTarget.style.color = "var(--color-bw-black)";
+ }}
+ style={{
+ ...typography.Rg_16,
+ color: "var(--color-bw-black)",
+ padding: "12px 21px",
+ cursor: "pointer",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "flex-start",
+ transition: "font-weight 0.2s ease",
+ }}
+ >
+ {option}
+
+
+ ))}
+