2021-08-03 04:44:13 +03:00
|
|
|
/*
|
|
|
|
* https://github.com/morethanwords/tweb
|
|
|
|
* Copyright (C) 2019-2021 Eduard Kuzmenko
|
|
|
|
* https://github.com/morethanwords/tweb/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
import Button from "./button";
|
|
|
|
|
2021-10-06 00:40:07 +04:00
|
|
|
const ButtonIcon = (className?: string, options: Partial<{noRipple: true, onlyMobile: true, asDiv: boolean}> = {}) => {
|
|
|
|
const button = Button('btn-icon', {
|
|
|
|
icon: className || undefined,
|
|
|
|
...options
|
|
|
|
});
|
|
|
|
|
2021-08-03 04:44:13 +03:00
|
|
|
return button;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ButtonIcon;
|