openreplay/frontend/app/components/Header/Discover/FeatureItem.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

26 lines
690 B
JavaScript

import React from 'react';
import { Checkbox } from 'UI';
import cn from 'classnames';
import stl from './featureItem.module.css';
const FeatureItem = ({ label, completed = false, subText, onClick }) => {
return (
<div
className={ cn(stl.wrapper, { [stl.activeLink]: onClick, [stl.completed]: completed }) }
onClick={onClick && onClick}
>
<Checkbox
label={ label }
className={ cn(stl.checkbox, completed ? stl.active : '') }
name="strict"
checked={ completed }
readOnly={ true }
/>
{ subText &&
<div className={ stl.subText }>{ subText }</div>
}
</div>
);
};
export default FeatureItem;