import * as React from 'react'; import classnames from 'classnames'; export type ButtonRoundPropsType = { children?: React.ReactNode | null | undefined; className?: string | null | undefined; wide?: boolean | null | undefined; disabled?: boolean | null | undefined; small?: boolean | null | undefined; href?: string; label?: string | null | undefined; } & Omit< React.AllHTMLAttributes, 'children' | 'className' | 'wide' | 'disabled' | 'small' | 'href' | 'label' >; const ButtonRound = ({ label, children, href = '#', className, ...props }: ButtonRoundPropsType) => { let labelElem; if (label !== undefined && label !== null && label !== '') { labelElem = {label}; } const buttonClass = classnames('sg-button-solid-round', className); return (
{children}
{labelElem}
); }; export default ButtonRound;