const ChevronDownIcon = `export const ChevronDownIcon = () => (
);`;
const App = `import {Button, ButtonGroup, Dropdown, DropdownTrigger, DropdownMenu, DropdownItem} from "@nextui-org/react";
import {ChevronDownIcon} from './ChevronDownIcon';
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"]}
);
}`;
const react = {
"/App.jsx": App,
"/ChevronDownIcon.jsx": ChevronDownIcon,
};
export default {
...react,
};