@carbon/ibm-products
Version:
Carbon for IBM Products
39 lines (38 loc) • 999 B
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 { option, statementConfig } from '../../ConditionBuilder.types';
interface ItemOptionProps {
conditionState: {
label?: string;
value?: string;
};
config: {
options?: option[] | statementConfig[];
} & {
isStatement?: boolean;
};
onChange: (value: string, e: Event) => void;
}
export declare const ItemOption: {
({ conditionState, config, onChange, }: ItemOptionProps): React.JSX.Element | undefined;
propTypes: {
/**
* current condition object
*/
conditionState: any;
/**
* current config object that this property is part of
*/
config: any;
/**
* callback to update state oin date change
*/
onChange: any;
};
};
export {};