/* eslint-disable react/display-name */ import { Button } from "~/components/ui/button"; import { cn } from "~/lib/utils"; import React, { forwardRef } from "react"; import { IconType } from "react-icons/lib"; import { VariantProps, cva } from "class-variance-authority"; const variants = cva( "text-slate-400 hover:bg-transparent hover:dark:bg-transparent p-0 flex-shrink-0", { variants: { size: { sm: "h-8 w-6", md: "h-8 w-8", lg: "h-10 w-10", }, }, defaultVariants: { size: "sm", }, } ); type Props = Omit, "size"> & VariantProps & { icon: IconType; }; const ActionButton = forwardRef( ({ icon: Icon, className, size, onClick, ...props }: Props, ref: any) => { return ( ); } ); export default ActionButton;