import Button from "@components/button" import React from "react" import styles from "./dropdown.module.css" import * as DropdownMenu from "@radix-ui/react-dropdown-menu" import { ArrowDown } from "react-feather" type Props = { type?: "primary" | "secondary" loading?: boolean disabled?: boolean className?: string iconHeight?: number } type Attrs = Omit, keyof Props> type ButtonDropdownProps = Props & Attrs const ButtonDropdown: React.FC< React.PropsWithChildren > = ({ type, className, disabled, loading, iconHeight = 24, ...props }) => { if (!Array.isArray(props.children)) { return null } return (
{props.children[0]}
) } export default ButtonDropdown