import { Box, Button, ChervonDownIcon, Dropdown, List, Text, } from "@saleor/macaw-ui/next"; import React from "react"; interface ButtonWithDropdownProps { onClick: () => void; options: Array<{ label: string; testId: string; onSelect: () => void }>; testId?: string; disabled?: boolean; } export const ButtonWithDropdown: React.FC = ({ onClick, options, children, testId, disabled = false, }) => ( {options.map((item, idx) => ( {item.label} ))} );