* feat: add board options dropdown and pipeline stage creation Closes #1395 * refactor: code review - remove useCallback
24 lines
648 B
TypeScript
24 lines
648 B
TypeScript
import { StyledHeaderDropdownButton } from '@/ui/dropdown/components/StyledHeaderDropdownButton';
|
|
import { useDropdownButton } from '@/ui/dropdown/hooks/useDropdownButton';
|
|
|
|
import { BoardOptionsDropdownKey } from '../types/BoardOptionsDropdownKey';
|
|
|
|
export function BoardOptionsDropdownButton() {
|
|
const { isDropdownButtonOpen, toggleDropdownButton } = useDropdownButton({
|
|
key: BoardOptionsDropdownKey,
|
|
});
|
|
|
|
function handleClick() {
|
|
toggleDropdownButton();
|
|
}
|
|
|
|
return (
|
|
<StyledHeaderDropdownButton
|
|
isUnfolded={isDropdownButtonOpen}
|
|
onClick={handleClick}
|
|
>
|
|
Options
|
|
</StyledHeaderDropdownButton>
|
|
);
|
|
}
|