@carbon/ibm-products
Version:
Carbon for IBM Products
39 lines (38 loc) • 1.33 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 { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
interface ConditionBuilderContentProps {
startConditionLabel: string;
getConditionState: (state: ConditionBuilderState) => void;
getActionsState?: (state: Action[]) => void;
initialState?: InitialState;
actions?: Action[];
}
declare const ConditionBuilderContent: {
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): React.JSX.Element;
propTypes: {
/**
* optional array of object that give the list of actions.
*/
actions: any;
/**
* callback functions that will provide the updated action state back.
*/
getActionsState: any;
/**
* This is a callback function that returns the updated state
*/
getConditionState: any;
/**
* Optional prop if the condition building need to start from a predefined initial state
*/
initialState: any;
startConditionLabel: any;
};
};
export default ConditionBuilderContent;