mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
22 lines
430 B
JavaScript
22 lines
430 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { Chip } from '@patternfly/react-core';
|
|
import './basicChip.scss';
|
|
|
|
const BasicChip = ({ children, onToggle, isOverflowChip }) => (
|
|
<Chip
|
|
className="awx-c-chip--basic"
|
|
onClick={onToggle}
|
|
isOverflowChip={isOverflowChip}
|
|
>
|
|
{children}
|
|
</Chip>
|
|
);
|
|
|
|
BasicChip.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
};
|
|
|
|
export default BasicChip;
|