0.1.8 • Published 2 years ago

nimbbl-rule-assistant-beta v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

nimbbl-rule-assistant

  • Rule Assistant

Usage

import React from "react";
import { Conditional } from "nimbbl-rule-assistant";

function App() {
  return (
      <Conditional
        modifiableVariables={[
          {
            displayName: "Late Fee",
            key: 1,
            value: "late_fee",
          },
        ]}
        expressionVariables={[
          {
            displayName: "Bill Amount",
            key: 1,
            value: "bill_amt",
          },
        ]}
        initialConditonalBlocks={[]}
        isSubmitted={isRuleFormSubmitted}
        onSubmit={(data) => {
          console.log("rule assistant submit data", data);
          setIsRuleFormSubmitted(false);
        }}
      />
  );
}

export default App;