HandleOptionClick

Function: handleOptionClick()

[object Object]

Defined in: app/components/Menu/NavBar/ProfileDropdown/ProfileDropdown.handlers.tsx:30

Executes a menu option's action and closes the dropdown.

handleOptionClick

Parameters

action

() => void

The callback function associated with the clicked option.

compact

[object Object]

Whether the dropdown is in a compact layout mode.

setIsOpen

Dispatch<SetStateAction<boolean>>

State setter to close the menu.

Returns

[object Object]

On this page