openreplay/frontend/app/components/Client/TabItem.js
2021-05-01 15:12:01 +05:30

15 lines
373 B
JavaScript

import { Icon } from 'UI';
import styles from './client.css';
const TabItem = ({ active = false, onClick, icon, label }) => {
return (
<li>
<a data-active={ active } onClick={ onClick } className="flex items-center">
<Icon name={ icon } size="16" marginRight="10" />
<span>{ label }</span>
</a>
</li>
);
};
export default TabItem;