Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { Gridicon } from '@automattic/components';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { Component } from 'react';
export default class PlanCompareCardItem extends Component {
static propTypes = {
highlight: PropTypes.bool,
unavailable: PropTypes.bool,
};
static defaultProps = {
highlight: false,
unavailable: false,
};
render() {
const classes = clsx( this.props.className, 'plan-compare-card-item', {
'is-highlight': this.props.highlight,
'is-unavailable': this.props.unavailable,
} );
const showCheckmark = this.props.highlight || ! this.props.unavailable;
return (
<li className={ classes }>
{ showCheckmark && (
<Gridicon size={ 18 } icon="checkmark" className="plan-compare-card__item-checkmark" />
) }
{ this.props.children }
</li>
);
}
}