import XNode from "@web-atoms/core/dist/core/XNode"; import "./Button.local.css"; export interface IButton { id?: string; icon?: string; text?: string; eventClick?: any; href?: string; target?: string; title?: string; styleDisplay?: string; class?: string; isVisible?: any; subClass?: string; } const css = "web-atoms-button"; export default function Button({ id, icon, text, eventClick, href, target, title, styleDisplay, class: className, subClass }: IButton) { console.warn("Deprecated, use data-layout=icon-button") const cn = className ?? ( subClass ? subClass + " " + css : css ); if (href) { if (text) { return ; } } return ; } Button.className = css;