import {
Button,
ButtonGroup,
Dropdown,
DropdownTrigger,
DropdownMenu,
DropdownItem,
} from "@heroui/react";
export const ChevronDownIcon = () => {
return (
);
};
export default function App() {
const [selectedOption, setSelectedOption] = React.useState(new Set(["merge"]));
const descriptionsMap = {
merge:
"All commits from the source branch are added to the destination branch via a merge commit.",
squash:
"All commits from the source branch are added to the destination branch as a single commit.",
rebase: "All commits from the source branch are added to the destination branch individually.",
};
const labelsMap = {
merge: "Create a merge commit",
squash: "Squash and merge",
rebase: "Rebase and merge",
};
// Convert the Set to an Array and get the first value.
const selectedOptionValue = Array.from(selectedOption)[0];
return (
{labelsMap["merge"]}
{labelsMap["squash"]}
{labelsMap["rebase"]}
);
}