import React from "react"; import Link from "next/link"; import { classNames } from "@documenso/lib"; export function IconButton(props: any) { const isLink = typeof props.href !== "undefined"; const { color = "primary", icon, disabled, onClick } = props; const baseStyles = "disabled:text-gray-300"; const primaryStyles = "text-neon hover:text-neon-dark"; const secondaryStyles = "text-gray-700 hover:text-neon-dark"; return isLink ? ( {props.icon ? ( ) : ( "" )} {props.children} ) : ( ); }