import clsx from 'clsx'; import React from 'react'; import { Link } from 'react-router-dom'; import Icon from '../icon/icon'; import { useButtonStyles } from './useButtonStyles'; import type { ButtonSizes, ButtonThemes } from './useButtonStyles'; interface IButton { /** Whether this button expands the width of its container. */ block?: boolean /** Elements inside the ); if (to) { return ( {renderButton()} ); } return renderButton(); }); export { Button as default, Button, };