diff --git a/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.css b/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.css deleted file mode 100644 index c3a2af6391..0000000000 --- a/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.css +++ /dev/null @@ -1,2 +0,0 @@ -.root { -} diff --git a/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.tsx b/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.tsx deleted file mode 100644 index d4583f0bfe..0000000000 --- a/src/core/client/ui/components/icons/ButtonSvgIcon/ButtonSvgIcon.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import cn from "classnames"; -import React, { - ComponentType, - FunctionComponent, - HTMLAttributes, - Ref, -} from "react"; - -import { SvgIcon } from "coral-ui/components/icons"; -import { withForwardRef, withStyles } from "coral-ui/hocs"; -import { PropTypesOf } from "coral-ui/types"; - -import { SvgIconProps } from "../SvgIcon/SvgIcon"; - -import styles from "./ButtonSvgIcon.css"; - -interface Props extends Omit, "color"> { - /** - * This prop can be used to add custom classnames. - * It is handled by the `withStyles `HOC. - */ - classes: typeof styles; - - size?: SvgIconProps["size"]; - - filled?: SvgIconProps["filled"]; - - strokeWidth?: SvgIconProps["strokeWidth"]; - - /** Internal: Forwarded Ref */ - forwardRef?: Ref; - - Icon: ComponentType; -} - -export const ButtonIcon: FunctionComponent = (props) => { - const { classes, className, Icon, forwardRef, ...rest } = props; - const rootClassName = cn(classes.root, className); - return ; -}; - -ButtonIcon.defaultProps = { - size: "sm", -} as Partial; - -const enhanced = withForwardRef(withStyles(styles)(ButtonIcon)); -export type ButtonIconProps = PropTypesOf; -export default enhanced;