import React from "react"; import "./Dropdown.scss"; import { Dropdown, DropDownProps } from "antd"; interface Props extends DropDownProps { children: React.ReactChild; icon?: React.ReactNode; styleType?: "primary" | "secondary"; } const StarshipDropdown = (props: Props) => { const { className, children, overlayClassName, icon, styleType = "primary", ...restProps } = props; return ( e.preventDefault()} className="starship-dropdown-text"> {children} {icon} ); }; export default StarshipDropdown;