;
}
-function Button({ label, keyCombo, onClick, isActive, className }: ButtonProps) {
+function Button({ label, keyCombo, onClick, isActive, icon }: ButtonProps) {
return void}
title={label}
className={
- classNames('mx_FormattingButtons_Button', className, {
+ classNames('mx_FormattingButtons_Button', {
'mx_FormattingButtons_active': isActive,
'mx_FormattingButtons_Button_hover': !isActive,
})}
tooltip={keyCombo && }
alignment={Alignment.Top}
- />;
+ >
+ { icon }
+ ;
}
interface FormattingButtonsProps {
@@ -65,10 +72,10 @@ interface FormattingButtonsProps {
export function FormattingButtons({ composer, actionStates }: FormattingButtonsProps) {
return
-
;
}