import clsx from 'clsx'; import React from 'react'; import CircleButton from '../CircleButton'; import styles from './styles.scss'; type ActiveCallButtonProps = { className?: string; buttonClassName?: string; onClick?: (...args: any[]) => any; disabled?: boolean; active?: boolean; title: string; icon?: (...args: any[]) => any; showBorder?: boolean; width?: string; height?: string; x?: number; y?: number; iconWidth?: number; iconHeight?: number; iconX?: number; iconY?: number; showRipple?: boolean; dataSign?: string; }; const ActiveCallButton: React.FC = (props) => { const className = clsx(styles.btnSvg, props.className); const buttonClassName = clsx( styles.button, props.buttonClassName, props.active ? styles.buttonActive : null, props.disabled ? styles.buttonDisabled : null, ); const text = props.title && props.title.split('\n').map((line, index) => ( {line} )); const buttonSize = 383.8; return ( {text} ); }; ActiveCallButton.defaultProps = { className: undefined, buttonClassName: undefined, onClick: undefined, disabled: false, active: false, icon: undefined, showBorder: true, width: '100%', height: '100%', x: 0, y: 0, iconWidth: undefined, iconHeight: undefined, iconX: undefined, iconY: undefined, showRipple: false, }; export default ActiveCallButton;