Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
394 B
11 lines
394 B
![]()
4 years ago
|
import { ripple } from "./ripple";
|
||
|
|
||
|
const ButtonIcon = (className: string, options: Partial<{noRipple: true, onlyMobile: true}> = {}) => {
|
||
|
const button = document.createElement('button');
|
||
|
button.className = `btn-icon tgico-${className}`;
|
||
|
if(!options.noRipple) ripple(button);
|
||
|
if(options.onlyMobile) button.classList.add('only-handhelds');
|
||
|
return button;
|
||
|
};
|
||
|
|
||
|
export default ButtonIcon;
|