import React from 'react'; import Style from './style'; import { ThemeColors } from '../../../../constants'; import type { ButtonTypeWithAction } from '../../types'; export interface RoundButtonProps { buttonColor?: ThemeColors; /** * Determines the button's main style theme */ buttonType?: ButtonTypeWithAction; /** * Node to be rendered inside the button. Recommended to be the button text */ children?: React.ReactNode; disabled?: boolean; /** * Icon to render in the button. Recommended to be a Radiance icon */ icon: React.ReactNode; /** * When loading, onClick function execution is disallowed */ isLoading?: boolean; loading?: boolean; onClick?: () => void; /** * Color that will override existing text, icon, and loading colors (except when disabled is true) */ textColor?: ThemeColors; [key: string]: unknown; } interface RoundButton extends React.FC { Container: typeof Style.RoundButtonContainer; } /** * `` behaves mostly the same as `