Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 1x 1x 1x 1x 1x | import React, { Component } from 'react';
import { defaultProps } from './props/defaultProps';
import { propTypes } from './props/propTypes';
import { Icon } from '@zohodesk/icons';
import Button from '@zohodesk/components/lib/semantic/Button/Button';
import style from './Thread.module.css';
export default class Thread extends Component {
constructor(props) {
super(props);
}
render() {
let { count, className, iconTitle, dataId, align } = this.props;
return (
<Button
customClass={`${style.container} ${style[`align_${align}`]} ${className}`}
title={iconTitle}
dataId={dataId}
a11y={{
ariaLabel: iconTitle
}}
>
<Icon name='ZD-TK-thread' size='9' />
<span className={style.count}>{count}</span>
</Button>
);
}
}
Thread.propTypes = propTypes;
Thread.defaultProps = defaultProps;
// if (__DOCS__) {
// Thread.docs = {
// folderName: 'List',
// componentGroup: 'Thread'
// };
// }
|