{/* Fixed header outside scrollable area */}
{/* Conditional divider when overflowing */}
{isOverflow && (
)}
{/* Scrollable content area */}
{
// Prevent the wheel event from bubbling up to parent containers
e.stopPropagation();
}}
>
{/* Top section with main buttons */}
{buttonConfigs.slice(0, -1).map((config, index) => (
{config.icon}
{config.name}
{/* Add divider after Automate button (index 2) */}
{index === 2 && (
)}
))}
{/* Spacer to push Config button to bottom */}
{/* Config button at the bottom */}
{buttonConfigs
.filter(config => config.id === 'config')
.map(config => (
{config.icon}
{config.name}
))}
setConfigModalOpen(false)}
/>
);
});
export default QuickAccessBar;