import React, { isValidElement } from "react" import Style from "./Button.module.css" import classNames from "classnames" import isString from "is-string" import {FontAwesomeIcon} from "@fortawesome/react-fontawesome" export default function Button({ children, className, color, icon, ...props }) { let iconElement; if(isValidElement(icon)) { iconElement = icon; } else if(icon) { iconElement = ( ) } else { iconElement = null; } return ( ) }