@carbon/ibm-products
Version:
Carbon for IBM Products
35 lines • 1.09 kB
TypeScript
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { ConditionGroup } from '../ConditionBuilder.types';
interface ConditionPreviewProps {
previewType: 'newGroup' | 'subGroup' | 'condition';
group: ConditionGroup;
colorIndex?: number;
className?: string;
}
declare const ConditionPreview: {
({ previewType, group, colorIndex, className, }: ConditionPreviewProps): React.JSX.Element;
propTypes: {
className: PropTypes.Requireable<string>;
/**
* index of the color for next group
*/
colorIndex: PropTypes.Requireable<number>;
/**
* current conditional group
*/
group: PropTypes.Requireable<object>;
/**
* type of review to be displayed
*/
previewType: PropTypes.Requireable<string>;
};
};
export default ConditionPreview;
//# sourceMappingURL=ConditionPreview.d.ts.map