import cx from "classnames"; import React from "react"; import { Icon } from "../Icon"; interface IControlsProps extends React.ButtonHTMLAttributes { elemRef?: React.Ref; icon: string; className?: string; isDisabled?: boolean; } const CLASS_ROOT = "controls"; type NativeButtonProps = IControlsProps & Omit< React.ButtonHTMLAttributes, keyof IControlsProps | "href" | "ref" > & { href?: undefined; }; export type ControlsProps = NativeButtonProps; const Controls = React.forwardRef((props, ref) => { const { elemRef, className, icon, isDisabled, ...rest } = props; const classes = cx(CLASS_ROOT, className); const buttonProps = rest as React.ButtonHTMLAttributes; return ( ); }); Controls.displayName = "Controls"; export { Controls };